The builder class that creates an instance of IntroductoryOverlay.
| IntroductoryOverlay |
build()
|
| IntroductoryOverlay.Builder | |
| IntroductoryOverlay.Builder |
setButtonText(int stringId)
Sets the text used in the confirmation button on this overlay.
|
| IntroductoryOverlay.Builder |
setFocusRadius(float radius)
Sets the radius of the "hole" around the cast button.
|
| IntroductoryOverlay.Builder |
setFocusRadiusId(int radiusId)
Sets the radius of the "hole" around the cast button.
|
| IntroductoryOverlay.Builder |
setOnOverlayDismissedListener(IntroductoryOverlay.OnOverlayDismissedListener
listener)
Sets an
IntroductoryOverlay.OnOverlayDismissedListener listener that will
be notified when the overlay is dismissed by pressing on the confirmation
button.
|
| IntroductoryOverlay.Builder |
setOverlayColor(int colorId)
Sets the background color of the overlay view.
|
| IntroductoryOverlay.Builder |
setSingleTime()
Sets the maximum number of times that this overlay should be shown to 1.
|
| IntroductoryOverlay.Builder |
setTitleText(int stringId)
Sets the text used in the Title area on the overlay.
|
| IntroductoryOverlay.Builder |
The constructor for the Builder class.
| activity | The Activity
that is showing the overlay view. |
|---|---|
| button | 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.
| text | The text string used in the confirmation button. |
|---|
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.
| stringId | The resource ID of the text string used in the confirmation button. |
|---|
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.
| radius | The radius of the "hole". |
|---|
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.
| radiusId | The resource ID of the radius of the "hole". |
|---|
Sets an
IntroductoryOverlay.OnOverlayDismissedListener listener that will be
notified when the overlay is dismissed by pressing on the confirmation
button.
| listener | The
IntroductoryOverlay.OnOverlayDismissedListener instance. |
|---|
Sets the background color of the overlay view. This will override the value that is provided in the style resource file and is optional.
| colorId | The resource ID of the background color. |
|---|
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.
Sets the text used in the Title area on the overlay. This will override the value specified in the resource file and is optional.
| stringId | The resource ID of the text string used in the title. |
|---|
Sets the text used in the Title area on the overlay. This will override the value specified in the resource file and is optional.
| text | The text string used in the title. |
|---|
| Attribute Name |
| CastIntroOverlay_castBackgroundColor |
| CastIntroOverlay_castFocusRadius |