Notification.CarExtender.Builder
public
static
class
Notification.CarExtender.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.Notification.CarExtender.Builder |
Builder class for Notification.CarExtender.UnreadConversation objects.
Summary
Public constructors | |
|---|---|
Notification.CarExtender.Builder(String name)
Constructs a new builder for |
|
Public methods | |
|---|---|
Notification.CarExtender.Builder
|
addMessage(String message)
Appends a new unread message to the list of messages for this conversation. |
Notification.CarExtender.UnreadConversation
|
build()
Builds a new unread conversation object. |
Notification.CarExtender.Builder
|
setLatestTimestamp(long timestamp)
Sets the timestamp of the most recent message in an unread conversation. |
Notification.CarExtender.Builder
|
setReadPendingIntent(PendingIntent pendingIntent)
Sets the pending intent that will be sent once the messages in this notification are read. |
Notification.CarExtender.Builder
|
setReplyAction(PendingIntent pendingIntent, RemoteInput remoteInput)
Sets the pending intent and remote input which will convey the reply to this notification. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Public constructors
Notification.CarExtender.Builder
Notification.CarExtender.Builder (String name)
Constructs a new builder for Notification.CarExtender.UnreadConversation.
| Parameters | |
|---|---|
name |
String: The name of the other participant in the conversation.
|
Public methods
addMessage
Notification.CarExtender.Builder addMessage (String message)
Appends a new unread message to the list of messages for this conversation. The messages should be added from oldest to newest.
| Parameters | |
|---|---|
message |
String: The text of the new unread message. |
| Returns | |
|---|---|
Notification.CarExtender.Builder |
This object for method chaining. |
build
Notification.CarExtender.UnreadConversation build ()
Builds a new unread conversation object.
| Returns | |
|---|---|
Notification.CarExtender.UnreadConversation |
The new unread conversation object. |
setLatestTimestamp
Notification.CarExtender.Builder setLatestTimestamp (long timestamp)
Sets the timestamp of the most recent message in an unread conversation. If a messaging notification has been posted by your application and has not yet been cancelled, posting a later notification with the same id and tag but without a newer timestamp may result in Android Auto not displaying a heads up notification for the later notification.
| Parameters | |
|---|---|
timestamp |
long: The timestamp of the most recent message in the conversation. |
| Returns | |
|---|---|
Notification.CarExtender.Builder |
This object for method chaining. |
setReadPendingIntent
Notification.CarExtender.Builder setReadPendingIntent (PendingIntent pendingIntent)
Sets the pending intent that will be sent once the messages in this notification are read.
| Parameters | |
|---|---|
pendingIntent |
PendingIntent: The pending intent to use. |
| Returns | |
|---|---|
Notification.CarExtender.Builder |
This object for method chaining. |
setReplyAction
Notification.CarExtender.Builder setReplyAction (PendingIntent pendingIntent, RemoteInput remoteInput)
Sets the pending intent and remote input which will convey the reply to this notification.
| Parameters | |
|---|---|
pendingIntent |
PendingIntent: The pending intent which will be triggered on a reply. |
remoteInput |
RemoteInput: The remote input parcelable which will carry the reply. |
| Returns | |
|---|---|
Notification.CarExtender.Builder |
This object for method chaining. |
See also:
Interfaces
- ActionBar.OnMenuVisibilityListener
- ActionBar.OnNavigationListener
- ActionBar.TabListener
- AlarmManager.OnAlarmListener
- Application.ActivityLifecycleCallbacks
- Application.OnProvideAssistDataListener
- AppOpsManager.OnOpChangedListener
- DatePickerDialog.OnDateSetListener
- FragmentBreadCrumbs.OnBreadCrumbClickListener
- FragmentManager.BackStackEntry
- FragmentManager.OnBackStackChangedListener
- KeyguardManager.OnKeyguardExitResult
- LoaderManager.LoaderCallbacks
- Notification.Action.Extender
- Notification.Extender
- PendingIntent.OnFinished
- SearchManager.OnCancelListener
- SearchManager.OnDismissListener
- SharedElementCallback.OnSharedElementsReadyListener
- TimePickerDialog.OnTimeSetListener
- UiAutomation.AccessibilityEventFilter
- UiAutomation.OnAccessibilityEventListener
Classes
- ActionBar
- ActionBar.LayoutParams
- ActionBar.Tab
- Activity
- ActivityGroup
- ActivityManager
- ActivityManager.AppTask
- ActivityManager.MemoryInfo
- ActivityManager.ProcessErrorStateInfo
- ActivityManager.RecentTaskInfo
- ActivityManager.RunningAppProcessInfo
- ActivityManager.RunningServiceInfo
- ActivityManager.RunningTaskInfo
- ActivityManager.TaskDescription
- ActivityOptions
- AlarmManager
- AlarmManager.AlarmClockInfo
- AlertDialog
- AlertDialog.Builder
- AliasActivity
- Application
- ApplicationErrorReport
- ApplicationErrorReport.AnrInfo
- ApplicationErrorReport.BatteryInfo
- ApplicationErrorReport.CrashInfo
- ApplicationErrorReport.RunningServiceInfo
- AppOpsManager
- AutomaticZenRule
- DatePickerDialog
- Dialog
- DialogFragment
- DownloadManager
- DownloadManager.Query
- DownloadManager.Request
- ExpandableListActivity
- Fragment
- Fragment.SavedState
- FragmentBreadCrumbs
- FragmentContainer
- FragmentController
- FragmentHostCallback
- FragmentManager
- FragmentManager.FragmentLifecycleCallbacks
- FragmentManagerNonConfig
- FragmentTransaction
- Instrumentation
- Instrumentation.ActivityMonitor
- Instrumentation.ActivityResult
- IntentService
- KeyguardManager
- KeyguardManager.KeyguardDismissCallback
- KeyguardManager.KeyguardLock
- LauncherActivity
- LauncherActivity.IconResizer
- LauncherActivity.ListItem
- ListActivity
- ListFragment
- LoaderManager
- LocalActivityManager
- MediaRouteActionProvider
- MediaRouteButton
- NativeActivity
- Notification
- Notification.Action
- Notification.Action.Builder
- Notification.Action.WearableExtender
- Notification.BigPictureStyle
- Notification.BigTextStyle
- Notification.Builder
- Notification.CarExtender
- Notification.CarExtender.Builder
- Notification.CarExtender.UnreadConversation
- Notification.DecoratedCustomViewStyle
- Notification.DecoratedMediaCustomViewStyle
- Notification.InboxStyle
- Notification.MediaStyle
- Notification.MessagingStyle
- Notification.MessagingStyle.Message
- Notification.Style
- Notification.WearableExtender
- NotificationChannel
- NotificationChannelGroup
- NotificationManager
- NotificationManager.Policy
- PendingIntent
- PictureInPictureParams
- PictureInPictureParams.Builder
- Presentation
- ProgressDialog
- RemoteAction
- RemoteInput
- RemoteInput.Builder
- SearchableInfo
- SearchManager
- Service
- SharedElementCallback
- TabActivity
- TaskStackBuilder
- TimePickerDialog
- UiAutomation
- UiModeManager
- VoiceInteractor
- VoiceInteractor.AbortVoiceRequest
- VoiceInteractor.CommandRequest
- VoiceInteractor.CompleteVoiceRequest
- VoiceInteractor.ConfirmationRequest
- VoiceInteractor.PickOptionRequest
- VoiceInteractor.PickOptionRequest.Option
- VoiceInteractor.Prompt
- VoiceInteractor.Request
- WallpaperInfo
- WallpaperManager
Exceptions