PermissionSet

@SerialName(value = "permission-set")
abstract class PermissionSet(val defaultTitle: String? = null, localizedTitles: Map<String, String> = emptyMap(), val defaultDetail: String? = null, localizedDetails: Map<String, String> = emptyMap(), val permissions: List<Permission> = emptyList())

A set of permissions that can be granted to an application.

Constructors

Link copied to clipboard
constructor(defaultTitle: String? = null, localizedTitles: Map<String, String> = emptyMap(), defaultDetail: String? = null, localizedDetails: Map<String, String> = emptyMap(), permissions: List<Permission> = emptyList())

Properties

Link copied to clipboard

The default detail message of the permission set, typically in English.

Link copied to clipboard

The default title of the permission set, typically in English.

Link copied to clipboard

The list of permissions that are part of this permission set.

Functions

Link copied to clipboard
fun detailForLanguage(languageTag: String): String?

Get the detail message for a specific language tag, falling back to the default detail message if not available.

Link copied to clipboard
fun titleForLanguage(languageTag: String): String?

Get the title for a specific language tag, falling back to the default title if not available.