-
public final class WatchStatusImmutable snapshot of companion-watch connectivity (Wear OS).
The wire shape is shared across the platform SDKs:
{ supported, reachable, paired, installed }.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWatchStatus.Companion
-
Constructor Summary
Constructors Constructor Description WatchStatus(Boolean supported, Boolean reachable, Boolean paired, Boolean installed)
-
Method Summary
Modifier and Type Method Description final BooleangetCanStartSession()final BooleangetSupported()The platform can talk to a watch at all. final BooleangetReachable()At least one Wear OS node is currently connected. final BooleangetPaired()A watch is paired. final BooleangetInstalled()The companion app is installed on the watch. -
-
Method Detail
-
getCanStartSession
final Boolean getCanStartSession()
-
getSupported
final Boolean getSupported()
The platform can talk to a watch at all.
False when Google Play services is unavailable — a de-Googled ROM or an emulator without Play. Distinct from reachable: unsupported means the transport does not exist, not that no watch is connected.
-
getReachable
final Boolean getReachable()
At least one Wear OS node is currently connected.
-
getPaired
final Boolean getPaired()
A watch is paired.
Wear OS does not expose pairing separately from connectivity, so this tracks reachable on Android. It is carried for parity with iOS, where
WCSessionreports the two independently.
-
getInstalled
final Boolean getInstalled()
-
-
-
-