StandaloneConstants

public class StandaloneConstants
extends Object

java.lang.Object
   ↳ android.support.wearable.standalone.StandaloneConstants


This class is deprecated.
use the androidx.wear.utils.MetadataConstants provided by the Jetpack Wear library instead.

Constants for Wear OS standalone apps.

Wear apps that do not require a phone side companion app to function can declare this in their AndroidManifest.xml file by setting the standalone meta-data element to true as shown in the following example. If this value is true, all users can discover this app regardless of what phone they have. If this value is false (or not set), only users with compatible Android phones can discover this app.

<meta-data
     android:name="com.google.android.wearable.standalone"
     android:value="true" />
 

Summary

Constants

String STANDALONE_METADATA_NAME

The name of the meta-data element in the Wear app manifest for specifying whether this app does not require a companion phone app.

Inherited methods

Constants

STANDALONE_METADATA_NAME

public static final String STANDALONE_METADATA_NAME

The name of the meta-data element in the Wear app manifest for specifying whether this app does not require a companion phone app. The value should be set to "true" or "false".

Constant Value: "com.google.android.wearable.standalone"