PermissionRequest API ambiguity

MLSDK version:
1.1.0-dev2

From; MagicLeap Developer Documentation


Vs

Which one is it?

1 Like

@TheMunk Thank you for bringing this to our attention. This must have been a typo that was introduced when we update the Permissions API.

The first one is correct when using the Request Permission API. The MLResult describes the status of the request and not the status of the permission it self. It will return MLResult.Code.InvalidParam, MLResult.Code.Ok or MLResult.Code.Pending

If the requested permission name is blank, if the request was successful and completed or it is waiting for a user's response.

If you are using the Check Permissions API to see if the permission was granted without the callbacks MLResult CheckPermission(string permission) The information in the second image is correct.

We will make the changes on our developer portal to make this more clear.

1 Like

Our documentation has been updated based on your feedback. Let us know if you see anything else.

1 Like