public static class RequestPermissionsSoftAskActivity.IntentBuilder
extends java.lang.Object
Constructor and Description |
---|
IntentBuilder(java.util.Collection<Permission> permissions) |
Modifier and Type | Method and Description |
---|---|
android.content.Intent |
buildIntent(android.content.Context ctx)
Returns a launchable intent with the appropriate parameters.
|
RequestPermissionsSoftAskActivity.IntentBuilder |
creativeOnly(boolean creativeOnly) |
RequestPermissionsSoftAskActivity.IntentBuilder |
keys(java.lang.String apiKey,
java.lang.String appKey)
The Xapp application keys that can be used to download styled permissions creatives.
|
void |
startActivity(android.app.Activity activity,
int requestCode)
Starts the permissions Activity based on the parameters provided.
|
RequestPermissionsSoftAskActivity.IntentBuilder |
type(int type)
The type of dialog that will be presented to the user.
|
public IntentBuilder(java.util.Collection<Permission> permissions)
public RequestPermissionsSoftAskActivity.IntentBuilder type(int type)
RequestPermissionsSoftAskActivity.TYPE_TEXT
.public RequestPermissionsSoftAskActivity.IntentBuilder keys(java.lang.String apiKey, java.lang.String appKey)
public RequestPermissionsSoftAskActivity.IntentBuilder creativeOnly(boolean creativeOnly)
public android.content.Intent buildIntent(android.content.Context ctx)
ctx
- App contextpublic void startActivity(android.app.Activity activity, int requestCode)
activity
- Activity to start the request.requestCode
- RequestCode used to retrieve the results on Activity.onActivityResult(int, int, Intent)
)}