java.lang.Object |
↳ |
com.google.android.gms.cast.framework.CastButtonFactory |
Summary
[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 Methods
public
static
MenuItem
setUpMediaRouteButton
(Context context, Menu menu, int menuResourceId)
Sets up the MediaRouteActionProvider
in menu
. Returns the MenuItem
of the MediaRouteActionProvider
.
Parameters |
context |
Context :
The application Context . |
menu |
Menu :
Menu reference. |
menuResourceId |
int :
The resource id of the cast button in the xml menu descriptor file. |
Throws |
IllegalArgumentException |
If menu doesn't contain a menu item with
menuResourceId identifier, or the menu item doesn't have a
MediaRouteActionProvider . |
IllegalStateException |
If this method is not called on the main thread.
|
public
static
void
setUpMediaRouteButton
(Context context, MediaRouteButton button)
Sets up the given MediaRouteButton
.
Parameters |
context |
Context :
The application Context . |
button |
MediaRouteButton :
The MediaRouteButton instance to set up. |
Throws |
IllegalStateException |
If this method is not called on the main thread.
|