java.lang.Object | |
↳ | com.google.android.gms.wearable.Wearable.WearableOptions.Builder |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the
Looper used for listener callbacks. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets the Looper
used for listener callbacks. For example:
WearableOptions options = new WearableOptions.Builder().setLooper(myLooper).build();
DataClient dataClient = Wearable.getDataClient(context, options);
// All callbacks to dataClient.OnDataChangedListener will now be made on myLooper.
Parameters | |
---|---|
looper |
Looper |
Returns | |
---|---|
Wearable.WearableOptions.Builder |