public static interface SoniTalkPermissionsResultReceiver.Receiver
Modifier and Type | Method and Description |
---|---|
void |
onSoniTalkPermissionResult(int resultCode,
android.os.Bundle resultData)
Receiver interface for classes that should listen for callbacks from SoniTalk.
|
void onSoniTalkPermissionResult(int resultCode, android.os.Bundle resultData)
resultCode
- Possible results code are:
- ON_PERMISSION_LEVEL_DECLINED:
When the user chose to "Decline" when asked for the privacy level.
- ON_REQUEST_GRANTED:
When a request (send/receive data) was accepted by the user.
The Bundle will contain the requestCode of the request (if you need to
know which send/receive actions were really executed).
- ON_REQUEST_DENIED:
When a request (send/receive data) was rejected by the user.
The Bundle will contain the requestCode of the request (if you need to
know which send/receive actions were really executed). At least this
callback (and ON_REQUEST_L0_DENIED) or
ON_SHOULD_SHOW_RATIONALE_FOR_ALLOW_ALWAYS should be used to show some
rationale to the user.
- ON_SEND_JOB_FINISHED:
When the user should show a rationale
for the "Allow Always" (L0) SoniTalk permission. At least this callback
or ON_REQUEST_DENIED should be used to show some rationale to the user.
- ON_SHOULD_SHOW_RATIONALE_FOR_ALLOW_ALWAYS:
When the user should show a rationale for the "Allow Always" (L0)
SoniTalk permission. At least this callback or ON_REQUEST_DENIED should
be used to show some rationale to the user.
- ON_REQUEST_L0_DENIED:
When the user denied a permission request from the Android permission
system (L0). At least this callback (and ON_REQUEST_DENIED) or
ON_SHOULD_SHOW_RATIONALE_FOR_ALLOW_ALWAYS should be used to show some
rationale to the user.resultData
- Bundle containing additional information such as a requestCode
identifying the call