AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.IAdaptyUISystemRequestsHandler Interface Reference

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.

Detailed Description

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>).

Member Function Documentation

◆ FlowViewDidAskPermission()

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.

Parameters
viewThe AdaptyUIFlowView that asked for the permission.
permissionThe permission identifier (e.g., "push", "camera", "tracking"). Unknown values pass through unchanged.
customArgsOptional custom arguments configured in the Adapty Dashboard, or null.
respondInvoke 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.

◆ FlowViewDidRequestAppReview()

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>).

Parameters
viewThe AdaptyUIFlowView that requested the review.

The documentation for this interface was generated from the following file: