StandaloneConstants
public
class
StandaloneConstants
extends Object
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 | |
|---|---|
|
From class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class<?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
| |
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"