TelephoneKeypadTemplate
@ExperimentalCarApi
@CarProtocol
class TelephoneKeypadTemplate : Template
A template that allows a user to dial a phone number which includes a keypad, a primary button, and a place for the user to see their dialed number.
Summary
Nested types |
|---|
|
A builder for |
|
An interface for clients to receive events about the phone number changing. |
Constants |
|
|---|---|
const Int |
KEY_EIGHT = 8The `8` key in the keypad. |
const Int |
KEY_FIVE = 5The `5` key in the keypad. |
const Int |
KEY_FOUR = 4The `4` key in the keypad. |
const Int |
KEY_NINE = 9The `9` key in the keypad. |
const Int |
KEY_ONE = 1The `1` key in the keypad. |
const Int |
KEY_POUND = 11The `#` key in the keypad. |
const Int |
KEY_SEVEN = 7The `7` key in the keypad. |
const Int |
KEY_SIX = 6The `6` key in the keypad. |
const Int |
KEY_STAR = 10The `*` key in the keypad. |
const Int |
KEY_THREE = 3The `3` key in the keypad. |
const Int |
KEY_TWO = 2The `2` key in the keypad. |
const Int |
KEY_ZERO = 0The `0` key in the keypad. |
Public constructors |
|---|
|
Default empty constructor for the serializer. |
Public functions |
|
|---|---|
Boolean |
|
Header? |
Returns the |
(Mutable)Map<Int!, CarText!> |
Returns the mapping of key -> text for the keypad button's secondary text. |
String? |
Gets the phone number to show in the "dialed number" field which can be edited before calling. |
InputCallbackDelegate? |
Returns the delegate that is used to fire dialed number change events back to the client app. |
Action? |
Returns the primary action button. |
TelephoneKeypadCallbackDelegate? |
Returns the delegate that is used to fire key events back to the client app. |
Int |
hashCode() |
String |
toString() |
Constants
Public constructors
TelephoneKeypadTemplate
@VisibleForTesting
TelephoneKeypadTemplate()
Default empty constructor for the serializer.
Public functions
getKeySecondaryTexts
fun getKeySecondaryTexts(): (Mutable)Map<Int!, CarText!>
Returns the mapping of key -> text for the keypad button's secondary text.
getPhoneNumber
fun getPhoneNumber(): String?
Gets the phone number to show in the "dialed number" field which can be edited before calling.
| See also | |
|---|---|
setPhoneNumber |
getPhoneNumberChangedDelegate
fun getPhoneNumberChangedDelegate(): InputCallbackDelegate?
Returns the delegate that is used to fire dialed number change events back to the client app.
getPrimaryAction
fun getPrimaryAction(): Action?
Returns the primary action button. This is usually the call button, but the app can set this arbitrarily.
getTelephoneKeypadCallbackDelegate
fun getTelephoneKeypadCallbackDelegate(): TelephoneKeypadCallbackDelegate?
Returns the delegate that is used to fire key events back to the client app.