Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01e5ad44 authored by Evan Chen's avatar Evan Chen
Browse files

Update the javadoc for new startObservingDevicePresence API

Test: make
Fix: 400971598
Bug: 417470015
Flag: EXEMPT test fix
Change-Id: I290b9699fa1f964c2d6d570f2bae7c3f27f12025
parent 7572fb79
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1349,9 +1349,17 @@ public final class CompanionDeviceManager {
    }

    /**
     * Register to receive callbacks whenever the associated device comes in and out of range.
     * Register to receive callbacks whenever the associated device's presence changes.
     * The presence could be:
     * <ul>
     *   <li>BLE range changes (in/out)</li>
     *   <li>Bluetooth connection status changes (connected/disconnected)</li>
     * </ul>
     *
     * <p>The app doesn't need to remain running in order to receive its callbacks.</p>
     * <p>Caller app must implement the {@link CompanionDeviceService} to receive callbacks via
     * {@link CompanionDeviceService#onDevicePresenceEvent(DevicePresenceEvent)}.
     * The system will bind to the implemented {@link CompanionDeviceService} to deliver the
     * callbacks./p>
     *
     * <p>Calling app must check for feature presence of
     * {@link PackageManager#FEATURE_COMPANION_DEVICE_SETUP} before calling this API.</p>