REST API

Viewing the Device Enrollment Result

After completing the device enrollment activity, you can use the
enroll
activity or
isDeviceEnrolled
function to view the device enrollment result.
The
enroll
activity returns the result
Intent
when the device enrollment process is successful. This example shows the information that is returned in the result
Intent
:
RESULT_CODE: EnrollResultIntent.ENROLMENT_RESULT_CODE (3489523) EXTRA: EnrollResultIntent.ENROLMENT_RESULT_EXTRA (enrolmentResult = deviceEnrolled) EXTRA: EnrollResultIntent.ENROLLMENT_RESULT_EXTRA_SERIAL_NUMBER (serialNumber)
The
isDeviceEnrolled
function returns a
true
value when the device is enrolled or a
false
value when not. This example shows how to use the function:
enrollmentstatus = isDeviceEnrolled()