Update TelephonyDisplayInfo docs

Explain how to get TelephonyDisplayInfo through TelephonyManager and
PhoneStateListener

Test: build
Fix: 158760752
Change-Id: Ia59efcf68c77d79be1a223f9fd6cbf3ec333478a
This commit is contained in:
Sarah Chin
2020-11-03 17:24:39 -08:00
parent fcf4a0c5e0
commit b4be4c8be3

View File

@@ -29,6 +29,10 @@ import java.util.Objects;
* information is provided in accordance with carrier policy and branding preferences; it is not * information is provided in accordance with carrier policy and branding preferences; it is not
* necessarily a precise or accurate representation of the current state and should be treated * necessarily a precise or accurate representation of the current state and should be treated
* accordingly. * accordingly.
* To be notified of changes in TelephonyDisplayInfo, use
* {@link TelephonyManager#registerPhoneStateListener} with a {@link PhoneStateListener}
* that implements {@link PhoneStateListener.DisplayInfoChangedListener}.
* Override the onDisplayInfoChanged() method to handle the broadcast.
*/ */
public final class TelephonyDisplayInfo implements Parcelable { public final class TelephonyDisplayInfo implements Parcelable {
/** /**