java.lang.Object | |
↳ | com.google.android.gms.cast.framework.IntroductoryOverlay.Builder |
The builder class that creates an instance of IntroductoryOverlay
.
XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
com.google.android.gms:castBackgroundColor | setOverlayColor(int) | ||||||||||
com.google.android.gms:castFocusRadius | setFocusRadiusId(int) |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The constructor for the Builder class.
| |||||||||||
The constructor for the Builder class.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the text used in the confirmation button on this overlay.
| |||||||||||
Sets the text used in the confirmation button on this overlay.
| |||||||||||
Sets the radius of the "hole" around the cast button.
| |||||||||||
Sets the radius of the "hole" around the cast button.
| |||||||||||
Sets an
IntroductoryOverlay.OnOverlayDismissedListener listener that will be notified when the
overlay is dismissed by pressing on the confirmation button. | |||||||||||
Sets the background color of the overlay view.
| |||||||||||
Sets the maximum number of times that this overlay should be shown to 1.
| |||||||||||
Sets the text used in the Title area on the overlay.
| |||||||||||
Sets the text used in the Title area on the overlay.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The constructor for the Builder class.
Parameters | |
---|---|
activity |
Activity :
The Activity that is showing the overlay view. |
button |
MediaRouteButton :
The MediaRouteButton that the overlay should focus on.
|
Sets the text used in the confirmation button on this overlay. This will override the value specified in the resource file and is optional. This is only used on older APIs prior to JELLY_BEAN.
Parameters | |
---|---|
text |
String :
The text string used in the confirmation button.
|
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the text used in the confirmation button on this overlay. This will override the value specified in the resource file and is optional. This is only used on older APIs prior to JELLY_BEAN.
Parameters | |
---|---|
stringId |
int :
The resource ID of the text string used in the confirmation button.
|
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the radius of the "hole" around the cast button. This will override the value specified in the resource file and is optional. This is only used on older APIs prior to JELLY_BEAN.
Parameters | |
---|---|
radius |
float :
The radius of the "hole".
|
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the radius of the "hole" around the cast button. This will override the value specified in the resource file and is optional. This is only used on older APIs prior to JELLY_BEAN.
Related XML Attributes:
Parameters | |
---|---|
radiusId |
int :
The resource ID of the radius of the "hole". |
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets an IntroductoryOverlay.OnOverlayDismissedListener
listener that will be notified when the
overlay is dismissed by pressing on the confirmation button.
Parameters | |
---|---|
listener |
IntroductoryOverlay.OnOverlayDismissedListener :
The IntroductoryOverlay.OnOverlayDismissedListener instance.
|
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the background color of the overlay view. This will override the value that is provided in the style resource file and is optional.
Related XML Attributes:
Parameters | |
---|---|
colorId |
int :
The resource ID of the background color. |
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the maximum number of times that this overlay should be shown to 1. If it is needed to show this more than once, management of the counter has to be done by the client.
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the text used in the Title area on the overlay. This will override the value specified in the resource file and is optional.
Parameters | |
---|---|
stringId |
int :
The resource ID of the text string used in the title.
|
Returns | |
---|---|
IntroductoryOverlay.Builder |
Sets the text used in the Title area on the overlay. This will override the value specified in the resource file and is optional.
Parameters | |
---|---|
text |
String :
The text string used in the title.
|
Returns | |
---|---|
IntroductoryOverlay.Builder |