Page Summary
-
DataUpdateListenerRegistrationRequest.Builderis a class used to createDataUpdateListenerRegistrationRequestobjects. -
The builder provides methods to set the
DataSourceandDataTypefor which to listen for data updates. -
A
PendingIntentcan be set to receive data update notifications. -
The
build()method constructs theDataUpdateListenerRegistrationRequestobject, throwing exceptions if required parameters likependingIntentare null or if bothdataSourceanddataTypeare null.
Builder for creating
DataUpdateListenerRegistrationRequest.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| DataUpdateListenerRegistrationRequest |
build()
Builds the
DataUpdateListenerRegistrationRequest object from the builder.
|
| DataUpdateListenerRegistrationRequest.Builder |
setDataSource(DataSource
dataSource)
Sets the
DataSource
for which we want to listen for data updates.
|
| DataUpdateListenerRegistrationRequest.Builder | |
| DataUpdateListenerRegistrationRequest.Builder |
setPendingIntent(PendingIntent
pendingIntent)
Sets the
PendingIntent
which will receive data update notification for updates.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public DataUpdateListenerRegistrationRequest build ()
Builds the
DataUpdateListenerRegistrationRequest object from the builder.
Throws
| NullPointerException | If the pendingIntent is null. |
|---|---|
| IllegalStateException | If both dataSource and dataType are null. |
public DataUpdateListenerRegistrationRequest.Builder setDataSource (DataSource dataSource)
Sets the DataSource
for which we want to listen for data updates.
Throws
| NullPointerException | If the dataSource is null. |
|---|
public DataUpdateListenerRegistrationRequest.Builder setDataType (DataType dataType)
Sets the DataType
for which we want to listen for data updates.
Throws
| NullPointerException | If the dataType is null. |
|---|
public DataUpdateListenerRegistrationRequest.Builder setPendingIntent (PendingIntent pendingIntent)
Sets the PendingIntent
which will receive data update notification for updates.
Throws
| NullPointerException | If the pendingIntent is null. |
|---|