Scope

Kotlin|Java

public final classScope implementsParcelable


Describes an OAuth 2.0 scope to request. This has security implications for the user, and requesting additional scopes will result in authorization dialogs.

Summary

Constants

static finalParcelable.Creator<Scope>

Public constructors

Scope(String scopeUri)

Creates a new scope with the given URI.

Public methods

boolean
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

Fromandroid.os.Parcelable
static final int
static final int

Inherited methods

Fromandroid.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<ScopeCREATOR

Public constructors

Scope

public Scope(String scopeUri)

Creates a new scope with the given URI.

Public methods

equals

public boolean equals(@NullableObject o)

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-10 UTC.