Wearable.WearableOptions.Builder

public static class Wearable.WearableOptions.Builder extends Object

Public Constructor Summary

Public Method Summary

Wearable.WearableOptions
Wearable.WearableOptions.Builder
setLooper(Looper looper)
Sets the Looper used for listener callbacks.

Inherited Method Summary

Public Constructors

public Wearable.WearableOptions.Builder ()

Public Methods

public Wearable.WearableOptions build ()

public Wearable.WearableOptions.Builder setLooper (Looper looper)

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.