Java Code Examples for com.google.android.gms.wearable.Wearable#WearableOptions

The following examples show how to use com.google.android.gms.wearable.Wearable#WearableOptions . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WearableClientImpl.java    From android_external_GmsLib with Apache License 2.0 5 votes vote down vote up
public WearableClientImpl(Context context, Wearable.WearableOptions options, GoogleApiClient.ConnectionCallbacks callbacks, GoogleApiClient.OnConnectionFailedListener connectionFailedListener) {
    super(context, callbacks, connectionFailedListener, GmsService.WEARABLE.ACTION);
    serviceId = GmsService.WEARABLE.SERVICE_ID;
    if (options != null && options.firstPartyMode)
        extras.putBoolean("firstPartyMode", true);
    Log.d(TAG, "<init>");
}
 
Example 2
Source File: WearableApiBuilder.java    From android_external_GmsLib with Apache License 2.0 4 votes vote down vote up
@Override
public ApiConnection build(Context context, Looper looper, Wearable.WearableOptions options,
        AccountInfo accountInfo, GoogleApiClient.ConnectionCallbacks callbacks,
        GoogleApiClient.OnConnectionFailedListener connectionFailedListener) {
    return new WearableClientImpl(context, options, callbacks, connectionFailedListener);
}