java.lang.Object | |
↳ | com.android.phone.InCallControlState |
Helper class to keep track of enabledness, visibility, and "on/off" or "checked" state of the various controls available in the in-call UI, based on the current telephony state. This class is independent of the exact UI controls used on any given device. (Some devices use onscreen touchable buttons, for example, and other devices use menu items.) To avoid cluttering up the InCallMenu and InCallTouchUi code with logic about which functions are available right now, we instead have that logic here, and provide simple boolean flags to indicate the state and/or enabledness of all possible in-call user operations. (In other words, this is the "model" that corresponds to the "view" implemented by InCallMenu and InCallTouchUi.)
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bluetoothEnabled | |||||||||||
bluetoothIndicatorOn | |||||||||||
canAddCall | |||||||||||
canHold | True if the "Hold" or "Unhold" function should be available right now | ||||||||||
canMerge | |||||||||||
canMute | |||||||||||
canSwap | |||||||||||
dialpadEnabled | |||||||||||
dialpadVisible | |||||||||||
manageConferenceEnabled | |||||||||||
manageConferenceVisible | |||||||||||
muteIndicatorOn | |||||||||||
onHold | True if the call is currently on hold | ||||||||||
speakerEnabled | |||||||||||
speakerOn | |||||||||||
supportsHold | True if the "Hold" function is *ever* available on this device |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Updates all our public boolean flags based on the current state of
the Phone.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
True if the "Hold" or "Unhold" function should be available right now
True if the call is currently on hold
True if the "Hold" function is *ever* available on this device
Updates all our public boolean flags based on the current state of the Phone.