# AuthorizeStatus

Determine if the device has a user login

# Call parameter

No parameter

# Return parameters

attribute Introductions
isAuthorize User activation exists for the device

# sample code

val request = WMPFAuthorizeStatusRequest().apply {
    this.baseRequest = WMPFBaseRequestHelper.checked()
}

val result =
    WMPFIPCInvoker.invokeAsync<IPCInvokerTask_AuthorizeStatus, WMPFAuthorizeStatusRequest, WMPFAuthorizeStatusResponse>(
        request,
        IPCInvokerTask_AuthorizeStatus::class.java,
        object : IPCInvokeCallbackEx<WMPFAuthorizeStatusResponse> {
            override fun onBridgeNotFound() {
                it.onError(Exception("bridge not found"))
            }

            override fun onCallback(response: WMPFAuthorizeStatusResponse) {
                if (isSuccess(response)) {
                    it.onSuccess(response)
                } else {
                    it.onError(TaskErrorException(createTaskError(response)))
                }
            }

            override fun onCaughtInvokeException(exception: java.lang.Exception?) {
                if (exception != null) {
                    it.onError(exception)
                } else {
                    it.onError(java.lang.Exception("null"))
                }
            }
        })

if (!result) {
    it.onError(Exception("invoke authorizeStatus fail"))
}