Skip to content

ws1-client-sdk/com.airwatch.sdk/SDKManager/writeCustomAttributes

writeCustomAttributes

open fun writeCustomAttributes(attributes: List<CustomAttributeData>): Int

Writes custom attributes for the given list of attributes.

Each CustomAttributeData must have group, key, and value fields populated.

Parameters

Name Description
attributes list of attributes to write.

Return

Positive integer indicating the number of attributes successfully written, or SDK_RES_FAIL status code if attributes array is empty/null.

Throws

Exception Condition
com.airwatch.sdk.AirWatchSDKException if any attribute is null or has null/empty group or key, if the service returns an error message, if API is not available in Anchor Application, or if binding with Anchor app fails.