ExecutionOptions | 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
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

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

# ExecutionOptions

extends Object

java.lang.Object
↳ | com.google.android.gms.drive.ExecutionOptions

## Class Overview

Options that can be included with certain requests to the API to configure notification and conflict resolution behavior. Use `ExecutionOptions.Builder` to create a new `ExecutionOptions` object.

## Summary

Nested Classes
class | ExecutionOptions.Builder | A builder for creating a new `ExecutionOptions`.

Constants
int | CONFLICT_STRATEGY_KEEP_REMOTE | A conflict resolution strategy that keeps the remote version of the file instead of overwriting it with the locally committed changes when a conflict is detected.
int | CONFLICT_STRATEGY_OVERWRITE_REMOTE | A conflict resolution strategy that always overwrites any remote state and applies the locally committed changes on top, even in case of conflicts.
int | MAX_TRACKING_TAG_STRING_LENGTH | The maximum tracking tag size in string length.

Public Methods
boolean | equals(Object o)
int | hashCode()

[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 int CONFLICT_STRATEGY_KEEP_REMOTE

A conflict resolution strategy that keeps the remote version of the file instead of overwriting it with the locally committed changes when a conflict is detected.

When using this strategy, the caller must also request completion notifications, by calling `setNotifyOnCompletion(boolean)`. Then, in case of conflict the remote state of the file will be preserved but through the `CompletionEvent`, the client will be able to handle the conflict, access the locally committed changes that conflicted (and couldn't be persisted on the server), and perform the desired conflict resolution with all the data. See `STATUS_CONFLICT` for more information on how to resolve conflicts.

This strategy can be used with `DriveContents` that were either opened in `MODE_READ_WRITE` through `open(GoogleApiClient, int, DriveFile.DownloadProgressListener)`, or reopened in `MODE_WRITE_ONLY` but obtained through `reopenForWrite(GoogleApiClient)`. This is because the API can only detect conflicts if the written contents are based upon a known revision. In both cases the base revision is considered the one obtained through the first `open(GoogleApiClient, int, DriveFile.DownloadProgressListener)`.

Constant Value: 1 (0x00000001)

#### public static final int CONFLICT_STRATEGY_OVERWRITE_REMOTE

A conflict resolution strategy that always overwrites any remote state and applies the locally committed changes on top, even in case of conflicts.

When this strategy is used, the Drive API will not even attempt to detect conflicts and will always overwrite contents. This strategy can be used with `DriveContents` opened in any mode (`MODE_READ_ONLY`, `MODE_WRITE_ONLY` or `MODE_READ_WRITE`).

Constant Value: 0 (0x00000000)

#### public static final int MAX_TRACKING_TAG_STRING_LENGTH

The maximum tracking tag size in string length.

Constant Value: 65536 (0x00010000)

## Public Methods

#### public boolean equals (Object o)

#### public int hashCode ()