API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

JAMS_IAPPSESSION_SETPERMISSIONQUERY()

Brew Release
Brew MP 1.0.2
See Also
None
Description
This function sets the response to the current permission query. This is intended to be called by the registered permission query handler. The running Java application that made the query will be resumed unless the result provided is jams_PERMISSION_QUERY_INTERRUPTED. When sending the interrupted response, the Java application will resend the permission query request when it returns to the foreground. The handler should close itself after interrupting the query. Failure to do so may result in the handler being resumed before the Java application resends the query. For example, if another application comes to the foreground during a query and then exits, the handler will be resumed instead of the Java application that needs to resend the query.
Params
me
[]:
Pointer to the interface object.
nPermissionResponse
[]:
One of the following
Interface
Prototype
  •    AEEResult jams_IAppSession_SetPermissionQuery
       (
          jams_IAppSession*	me,
          uint32			nPermissionResponse
       );
    
Return
  • One of the following BREW error codes: AEE_SUCCESS Permission query response set successfully. AEE_EFAILED or other Permission query is not currently in progress, or unspecified error.
Side Effect
  • None
Comments
None