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 TelephoneKeypadTemplate.

An interface for clients to receive events about the phone number changing.

Constants

const Int

The `8` key in the keypad.

const Int

The `5` key in the keypad.

const Int

The `4` key in the keypad.

const Int

The `9` key in the keypad.

const Int

The `1` key in the keypad.

const Int

The `#` key in the keypad.

const Int

The `7` key in the keypad.

const Int

The `6` key in the keypad.

const Int

The `*` key in the keypad.

const Int

The `3` key in the keypad.

const Int

The `2` key in the keypad.

const Int

The `0` key in the keypad.

Public constructors

Default empty constructor for the serializer.

Public functions

Boolean
equals(other: Any?)
Header?

Returns the Header to show in this template.

(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
String

Constants

KEY_EIGHT

Added in 1.8.0-beta01
const val KEY_EIGHT = 8: Int

The `8` key in the keypad.

KEY_FIVE

Added in 1.8.0-beta01
const val KEY_FIVE = 5: Int

The `5` key in the keypad.

KEY_FOUR

Added in 1.8.0-beta01
const val KEY_FOUR = 4: Int

The `4` key in the keypad.

KEY_NINE

Added in 1.8.0-beta01
const val KEY_NINE = 9: Int

The `9` key in the keypad.

KEY_ONE

Added in 1.8.0-beta01
const val KEY_ONE = 1: Int

The `1` key in the keypad.

KEY_POUND

Added in 1.8.0-beta01
const val KEY_POUND = 11: Int

The `#` key in the keypad.

KEY_SEVEN

Added in 1.8.0-beta01
const val KEY_SEVEN = 7: Int

The `7` key in the keypad.

KEY_SIX

Added in 1.8.0-beta01
const val KEY_SIX = 6: Int

The `6` key in the keypad.

KEY_STAR

Added in 1.8.0-beta01
const val KEY_STAR = 10: Int

The `*` key in the keypad.

KEY_THREE

Added in 1.8.0-beta01
const val KEY_THREE = 3: Int

The `3` key in the keypad.

KEY_TWO

Added in 1.8.0-beta01
const val KEY_TWO = 2: Int

The `2` key in the keypad.

KEY_ZERO

Added in 1.8.0-beta01
const val KEY_ZERO = 0: Int

The `0` key in the keypad.

Public constructors

TelephoneKeypadTemplate

Added in 1.8.0-beta01
@VisibleForTesting
TelephoneKeypadTemplate()

Default empty constructor for the serializer.

Public functions

equals

fun equals(other: Any?): Boolean

getHeader

Added in 1.8.0-beta01
fun getHeader(): Header?

Returns the Header to show in this template.

getKeySecondaryTexts

Added in 1.8.0-beta01
fun getKeySecondaryTexts(): (Mutable)Map<Int!, CarText!>

Returns the mapping of key -> text for the keypad button's secondary text.

getPhoneNumber

Added in 1.8.0-beta01
fun getPhoneNumber(): String?

Gets the phone number to show in the "dialed number" field which can be edited before calling.

See also
setPhoneNumber

getPhoneNumberChangedDelegate

Added in 1.8.0-beta01
fun getPhoneNumberChangedDelegate(): InputCallbackDelegate?

Returns the delegate that is used to fire dialed number change events back to the client app.

getPrimaryAction

Added in 1.8.0-beta01
fun getPrimaryAction(): Action?

Returns the primary action button. This is usually the call button, but the app can set this arbitrarily.

getTelephoneKeypadCallbackDelegate

Added in 1.8.0-beta01
fun getTelephoneKeypadCallbackDelegate(): TelephoneKeypadCallbackDelegate?

Returns the delegate that is used to fire key events back to the client app.

hashCode

fun hashCode(): Int

toString

fun toString(): String