Scopes | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Inherited Methods | [Expand All]
public final class

# Scopes

extends Object

java.lang.Object
↳ | com.google.android.gms.common.Scopes

## Class Overview

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

## Summary

Constants
String | APP_STATE | Scope for using the App State service.
String | CLOUD_SAVE | Scope for using the CloudSave service.
String | DRIVE_APPFOLDER | Scope for accessing appfolder files from Google Drive.
String | DRIVE_FILE | Scope for access user-authorized files from Google Drive.
String | GAMES | Scope for accessing data from Google Play Games.
String | PLUS_LOGIN | OAuth 2.0 scope for accessing the user's name, basic profile info, list of people in the user's circles, and writing app activities to Google.
String | PLUS_ME | This scope was previously named PLUS_PROFILE.
String | PROFILE | OAuth 2.0 scope for accessing user's basic profile information.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final String APP_STATE

Scope for using the App State service.

Constant Value: "https://www.googleapis.com/auth/appstate"

#### public static final String CLOUD_SAVE

Scope for using the CloudSave service.

Constant Value: "https://www.googleapis.com/auth/datastoremobile"

#### public static final String DRIVE_APPFOLDER

Scope for accessing appfolder files from Google Drive.

Constant Value: "https://www.googleapis.com/auth/drive.appdata"

#### public static final String DRIVE_FILE

Scope for access user-authorized files from Google Drive.

Constant Value: "https://www.googleapis.com/auth/drive.file"

#### public static final String GAMES

Scope for accessing data from Google Play Games.

Constant Value: "https://www.googleapis.com/auth/games"

#### public static final String PLUS_LOGIN

OAuth 2.0 scope for accessing the user's name, basic profile info, list of people in the user's circles, and writing app activities to Google.

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

- the user's full name, profile picture, Google+ profile ID, age range, and language
- people the user has circled, represented as a list of public profiles
- any other publicly available information on the user's Google+ profile
- write app activities (moments) to Google.

Constant Value: "https://www.googleapis.com/auth/plus.login"

#### public static final String PLUS_ME

This scope was previously named PLUS_PROFILE.

When using this scope, it does the following:

- It lets you know who the currently authenticated user is by letting you replace a Google+ user ID with "me", which represents the authenticated user, in any call to the Google+ API.

Constant Value: "https://www.googleapis.com/auth/plus.me"

#### public static final String PROFILE

OAuth 2.0 scope for accessing user's basic profile information.

When using this scope, it does the following:

- It requests that your app be given access to the authenticated user's basic profile information.
- It lets you know who the currently authenticated user is by letting you replace a Google+ user ID with "me", which represents the authenticated user, in any call to the Google+ API.
- It lets your web app access over-the-air Android app installs.

Constant Value: "profile"