|
AdaptySDK 4.1.1
|
Interface for handling system requests initiated by a flow: OS permission prompts and store review requests. More...
Public Member Functions | |
| void | FlowViewDidAskPermission (AdaptyUIFlowView view, string permission, IReadOnlyDictionary< string, string > customArgs, Action< bool, string > respond) |
| Called when a flow asks for an OS permission. | |
| void | FlowViewDidRequestAppReview (AdaptyUIFlowView view) |
| Called when a flow requests a native store review prompt. | |
Interface for handling system requests initiated by a flow: OS permission prompts and store review requests.
Use Adapty.SetSystemRequestsHandler(IAdaptyUISystemRequestsHandler) to register your handler. If no handler is registered, permission requests are ignored (no answer is sent), and app review requests fall back to AdaptyUI.RequestAppReview(Action<AdaptyError>).
| void AdaptySDK.IAdaptyUISystemRequestsHandler.FlowViewDidAskPermission | ( | AdaptyUIFlowView | view, |
| string | permission, | ||
| IReadOnlyDictionary< string, string > | customArgs, | ||
| Action< bool, string > | respond ) |
Called when a flow asks for an OS permission.
Request the permission from the OS yourself, then invoke respond exactly once with the outcome.
| view | The AdaptyUIFlowView that asked for the permission. |
| permission | The permission identifier (e.g., "push", "camera", "tracking"). Unknown values pass through unchanged. |
| customArgs | Optional custom arguments configured in the Adapty Dashboard, or null. |
| respond | Invoke with the outcome: granted flag and an optional detail string (may be null). Safe to invoke from any thread - the SDK sends the answer from the Unity main thread. |
| void AdaptySDK.IAdaptyUISystemRequestsHandler.FlowViewDidRequestAppReview | ( | AdaptyUIFlowView | view | ) |
Called when a flow requests a native store review prompt.
To keep the default behavior, call AdaptyUI.RequestAppReview(Action<AdaptyError>).
| view | The AdaptyUIFlowView that requested the review. |