Instance Property

iOSDeviceNeedsUnlockAfterRebootForReachability

A Boolean value indicating whether the paired iPhone must be unlocked to become reachable.

Declaration

var iOSDeviceNeedsUnlockAfterRebootForReachability: Bool { get }

Discussion

When the isReachable property is false, use this property to determine if the iPhone is unreachable because it needs to be unlocked first. A recently rebooted iPhone remains unreachable until the user unlocks it for the first time. Until the user unlocks the iPhone, the value of this property is true. When the value is true, you might display an alert from your Watch app asking the user to unlock the iPhone to continue. After the user unlocks the iPhone, the value of the property changes to false.

The value in this property is valid only for a configured session that has been activated successfully. If the activationState property is available, its value must be WCSessionActivationState.activated. When the session becomes inactive or deactivated, you should ignore the value in this property.

See Also

Getting the Paired Device Information

var isPaired: Bool

A Boolean indicating whether the current iPhone is paired to an Apple Watch.

var isWatchAppInstalled: Bool

A Boolean value indicating whether the Watch app is installed on the currently paired and active Apple Watch.

var isComplicationEnabled: Bool

A Boolean value indicating whether the Watch app’s complication is in use on the currently paired and active Apple Watch.

var watchDirectoryURL: URL?

A directory for storing information specific to the currently paired and active Apple Watch.