DataUpdateListenerRegistrationRequest.Builder

public static classDataUpdateListenerRegistrationRequest.BuilderextendsObject

Public Constructor Summary

Public Method Summary

DataUpdateListenerRegistrationRequest
build()
Builds the DataUpdateListenerRegistrationRequestobject from the builder.
DataUpdateListenerRegistrationRequest.Builder
setDataSource(DataSource dataSource)
Sets theDataSource for which we want to listen for data updates.
DataUpdateListenerRegistrationRequest.Builder
setDataType(DataType dataType)
Sets theDataType for which we want to listen for data updates.
DataUpdateListenerRegistrationRequest.Builder
setPendingIntent(PendingIntent pendingIntent)
Sets thePendingIntent which will receive data update notification for updates.

Inherited Method Summary

Public Constructors

publicBuilder()

Public Methods

public DataUpdateListenerRegistrationRequestbuild()

Builds the DataUpdateListenerRegistrationRequestobject from the builder.

Throws
NullPointerException If the pendingIntent is null.
IllegalStateException If both dataSource and dataType are null.

public DataUpdateListenerRegistrationRequest.BuildersetDataSource(DataSource dataSource)

Sets theDataSource for which we want to listen for data updates.

Throws
NullPointerException If the dataSource is null.

public DataUpdateListenerRegistrationRequest.BuildersetDataType(DataType dataType)

Sets theDataType for which we want to listen for data updates.

Throws
NullPointerException If the dataType is null.

public DataUpdateListenerRegistrationRequest.BuildersetPendingIntent(PendingIntent pendingIntent)

Sets thePendingIntent which will receive data update notification for updates.

Throws
NullPointerException If the pendingIntent is null.