Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static final class

# CastRemoteDisplayLocalService.NotificationSettings.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.cast.CastRemoteDisplayLocalService.NotificationSettings.Builder

## Class Overview

Builder class for the `CastRemoteDisplayLocalService.NotificationSettings` object.

## Summary

Public Constructors
| CastRemoteDisplayLocalService.NotificationSettings.Builder()

Public Methods
CastRemoteDisplayLocalService.NotificationSettings | build() Builds and returns the `CastRemoteDisplayLocalService.NotificationSettings` object.
CastRemoteDisplayLocalService.NotificationSettings.Builder | setNotification(Notification notification) Sets a custom `Notification`.
CastRemoteDisplayLocalService.NotificationSettings.Builder | setNotificationPendingIntent(PendingIntent notificationPendingIntent) Sets a `PendingIntent` that will be executed when the default notification is clicked.
CastRemoteDisplayLocalService.NotificationSettings.Builder | setNotificationText(String notificationText) The default `Notification` text.
CastRemoteDisplayLocalService.NotificationSettings.Builder | setNotificationTitle(String notificationTitle) The default `Notification` title.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public CastRemoteDisplayLocalService.NotificationSettings.Builder ()

## Public Methods

#### public CastRemoteDisplayLocalService.NotificationSettings build ()

Builds and returns the `CastRemoteDisplayLocalService.NotificationSettings` object. It verifies that if the notification is provided the other arguments are not provided.

#### public CastRemoteDisplayLocalService.NotificationSettings.Builder setNotification (Notification notification)

Sets a custom `Notification`. If a custom notification is used, the rest of the settings should not be provided.

##### Parameters

notification | The custom notification.

##### Returns

- `CastRemoteDisplayLocalService.NotificationSettings.Builder`

#### public CastRemoteDisplayLocalService.NotificationSettings.Builder setNotificationPendingIntent (PendingIntent notificationPendingIntent)

Sets a `PendingIntent` that will be executed when the default notification is clicked. If a custom notification is used, this value should not be provided.

##### Parameters

notificationPendingIntent | The `PendingIntent` that will be executed when the default notification is clicked.

##### Returns

- `CastRemoteDisplayLocalService.NotificationSettings.Builder`

#### public CastRemoteDisplayLocalService.NotificationSettings.Builder setNotificationText (String notificationText)

The default `Notification` text.

##### Returns

- `CastRemoteDisplayLocalService.NotificationSettings.Builder`

#### public CastRemoteDisplayLocalService.NotificationSettings.Builder setNotificationTitle (String notificationTitle)

The default `Notification` title.

##### Returns

- `CastRemoteDisplayLocalService.NotificationSettings.Builder`