Quicknav Quicknav
Links

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

Android Sites

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

close

- - Get Started
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
    - Get the SDK
  - Google Services
- - Google Play
  - Publishing
  - Promoting
  - App Quality
  - Spotlight
  - Open Distribution

## Results

Loading...
Summary: Nested Classes | Methods | Inherited Methods | [Expand All]
public interface

# Moment

implements Freezable<T>

com.google.android.gms.plus.model.moments.Moment

## Summary

Nested Classes
class | Moment.Builder |

Public Methods
abstract String | getId() The moment ID.
abstract ItemScope | getResult() The object generated by performing the action on the target.
abstract String | getStartDate() Time stamp of when the action occurred in RFC3339 format.
abstract ItemScope | getTarget() The object on which the action was performed.
abstract String | getType() The Google schema for the type of moment to write.
abstract boolean | hasId() Indicates whether the "id" field is explicitly set to a value.
abstract boolean | hasResult() Indicates whether the "result" field is explicitly set to a value.
abstract boolean | hasStartDate() Indicates whether the "startDate" field is explicitly set to a value.
abstract boolean | hasTarget() Indicates whether the "target" field is explicitly set to a value.
abstract boolean | hasType() Indicates whether the "type" field is explicitly set to a value.

[Expand] Inherited Methods

From interface com.google.android.gms.common.data.Freezable

abstract T | freeze() Freeze a volatile representation into an immutable representation.
abstract boolean | isDataValid() Check to see if this object is valid for use.

## Public Methods

#### public abstract String getId ()

The moment ID.

#### public abstract ItemScope getResult ()

The object generated by performing the action on the target. For example, a user writes a review of a restaurant, the target is the restaurant and the result is the review.

#### public abstract String getStartDate ()

Time stamp of when the action occurred in RFC3339 format.

#### public abstract ItemScope getTarget ()

The object on which the action was performed.

#### public abstract String getType ()

The Google schema for the type of moment to write. For example, http://schemas.google.com/AddActivity.

#### public abstract boolean hasId ()

Indicates whether the "id" field is explicitly set to a value.

#### public abstract boolean hasResult ()

Indicates whether the "result" field is explicitly set to a value.

#### public abstract boolean hasStartDate ()

Indicates whether the "startDate" field is explicitly set to a value.

#### public abstract boolean hasTarget ()

Indicates whether the "target" field is explicitly set to a value.

#### public abstract boolean hasType ()

Indicates whether the "type" field is explicitly set to a value.