App Callback
Public callback functions to subscribe to app events.
Functions
Is called when the app sends the access token is invalid action. The client app needs to call the onResult function to set the GetAccessTokenResponse.
Is called whenever the current app tries to redirect to another specified app. The client app can then decide, if this should be allowed (set isAllowed to true) or if the client intercepts the app (set isAllowed to false), e.g. native apps with a map probably don't want to show the fuel station finder, but show their own map instead.
Is called when the app wants to know if the remote config feature is generally available.
Is called when the app wants to know if the user is potentially signed in without triggering an actual sign in action.
Is called when the client app hasn't set up deep linking via a custom scheme, which the app is trying to trigger, and passes the scheme for which it failed.
Is called when the app sends an image. If it is not overwritten, it opens the image in the system share sheet.
Is called when the user logs in via an automatic authorization request from the SDK within the PWA. This callback can be used to display an AlertDialog after an authorization within the PWA, for which the AppActivity context is needed.
Is called when the app sends a request to logout the current user. The client app needs to call the onResult function to set the LogoutResponse. Use LogoutResponse.SUCCESSFUL to signal a successful logout, LogoutResponse.UNAUTHORIZED if the user was not logged in at all and LogoutResponse.OTHER for all other errors.
Is called when the app was opened (e.g. by clicking the cloud.pace.sdk.appkit.app.drawer.AppDrawer).
Is called when the app sends the open URL in new tab action.
Is called if an automatic session renewal triggered by the SDK itself fails. The client app needs to call the onResult function to set a new access token or null in case of error.
Is called when the app sends a text to share. If it is not overwritten, it opens the system share sheet.
Is called when the app sends a user property.