{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% include "/android/_dackka-meta-tags.html" %}

Scopes

{% setvar page_path %}com/google/android/gms/common/Scopes.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_kotlin_switcher2.md" %}

class Scopes


OAuth 2.0 scopes for use with Google Play services. See the specific client methods for details on which scopes are required.

Summary

Constants

const String!
APP_STATE = "https://www.googleapis.com/auth/appstate"

Scope for using the App State service.

const String!
CLOUD_SAVE = "https://www.googleapis.com/auth/datastoremobile"

Scope for using the CloudSave service.

const String!
DRIVE_APPFOLDER = "https://www.googleapis.com/auth/drive.appdata"

Scope for accessing appfolder files from Google Drive.

const String!
DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"

Scope for access user-authorized files from Google Drive.

const String!
EMAIL = "email"

OAuth 2.0 scope for accessing user's Google account email address.

const String!
GAMES = "https://www.googleapis.com/auth/games"

Scope for accessing data from Google Play Games.

const String!
PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"

This property is deprecated.

We recommend switching to PROFILE scope to get the one-tap sign-in experience.

const String!
PLUS_ME = "https://www.googleapis.com/auth/plus.me"

This scope was previously named PLUS_PROFILE.

const String!
PROFILE = "profile"

OAuth 2.0 scope for viewing a user's basic profile information.

Constants

APP_STATE

const val APP_STATE = "https://www.googleapis.com/auth/appstate": String!

Scope for using the App State service.

CLOUD_SAVE

const val CLOUD_SAVE = "https://www.googleapis.com/auth/datastoremobile": String!

Scope for using the CloudSave service.

DRIVE_APPFOLDER

const val DRIVE_APPFOLDER = "https://www.googleapis.com/auth/drive.appdata": String!

Scope for accessing appfolder files from Google Drive.

DRIVE_FILE

const val DRIVE_FILE = "https://www.googleapis.com/auth/drive.file": String!

Scope for access user-authorized files from Google Drive.

EMAIL

const val EMAIL = "email": String!

OAuth 2.0 scope for accessing user's Google account email address.

GAMES

const val GAMES = "https://www.googleapis.com/auth/games": String!

Scope for accessing data from Google Play Games.

PLUS_LOGIN

const val PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login": String!

OAuth 2.0 scope for accessing the user's name, basic profile info and Google+ profile info.

When using this scope, your app will have access to:

PLUS_ME

const val PLUS_ME = "https://www.googleapis.com/auth/plus.me": String!

This scope was previously named PLUS_PROFILE.

When using this scope, it does the following:

PROFILE

const val PROFILE = "profile": String!

OAuth 2.0 scope for viewing a user's basic profile information.