public static class Permission.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Permission |
build() |
Permission.Builder |
imageResourceDrawable(int imageDrawable)
For permissions dialogs with images, this is the image that represents the permission.
|
Permission.Builder |
imageUri(java.lang.String uriLocation)
For permissions dialogs with images, this is the image that represents the permission.
|
Permission.Builder |
rationale(java.lang.String rationale)
A rationale to display to the user as to why they need this permission.
|
Permission.Builder |
title(java.lang.String title)
The title or name of the permission to display.
|
public Permission.Builder title(java.lang.String title)
title
- Title to include.public Permission.Builder rationale(java.lang.String rationale)
rationale
- Rationale that will be display to the user. If null, then a default rationale will be used.public Permission.Builder imageUri(java.lang.String uriLocation)
uriLocation
- Location of the image to show (file path or web link).public Permission.Builder imageResourceDrawable(int imageDrawable)
imageUri(String)
imageDrawable
- Resource ID of the image to draw.public Permission build()