ws1-client-sdk/com.airwatch.sdk/SDKManager/autoEnroll
autoEnroll¶
open fun autoEnroll(server: String, groupId: String, user: String, password: String): Boolean
Enrolls the application silently if agent is not yet enrolled.
Access Level = AW_WHITELISTED (for details on access permission please check SDKManager)
To check the progress need to check isEnrolled Receive the callback for auto enrollment finish in handleAutoEnrollmentStatus
Parameters¶
| Name | Description |
|---|---|
| server | Device Services server URL to enroll against. |
| groupId | Organization group identifier used for enrollment. |
| user | Enrollment username. |
| password | Enrollment password for the given user. |
Return¶
true if enrollment started successfully; false on permission issue.
Throws¶
| Exception | Condition |
|---|---|
| com.airwatch.sdk.AirWatchSDKException | if API is not available in Anchor Application or binding with Anchor app fails |