ProjectedPermissionsRequestParams


public final class ProjectedPermissionsRequestParams


Class representing data for requesting permissions from a Projected activity.

Summary

Public constructors

ProjectedPermissionsRequestParams(
    @NonNull List<@NonNull String> permissions,
    String rationale
)

Public methods

boolean
equals(Object other)
final @NonNull List<@NonNull String>

The permissions to request.

final String

The rationale for the permission request.

int
@NonNull String

Public constructors

ProjectedPermissionsRequestParams

Added in 1.0.0-alpha01
public ProjectedPermissionsRequestParams(
    @NonNull List<@NonNull String> permissions,
    String rationale
)
Parameters
@NonNull List<@NonNull String> permissions

The permissions to request.

String rationale

The rationale for the permission request. If null, the request will be presented to the user immediately. If not null, the rationale will be presented to the user first and the permission request will only be triggered after the user accepts the rationale. See ProjectedPermissionsResultContract for details.

Public methods

equals

public boolean equals(Object other)

getPermissions

Added in 1.0.0-alpha01
public final @NonNull List<@NonNull StringgetPermissions()

The permissions to request.

getRationale

Added in 1.0.0-alpha01
public final String getRationale()

The rationale for the permission request. If null, the request will be presented to the user immediately. If not null, the rationale will be presented to the user first and the permission request will only be triggered after the user accepts the rationale. See ProjectedPermissionsResultContract for details.

hashCode

public int hashCode()

toString

public @NonNull String toString()