Methods Summary |
---|
public int | getRouteTypes()
Bundle args = getArguments();
return args != null ? args.getInt(ARGUMENT_ROUTE_TYPES) : 0;
|
public MediaRouteChooserDialog | onCreateChooserDialog(android.content.Context context, android.os.Bundle savedInstanceState)Called when the chooser dialog is being created.
Subclasses may override this method to customize the dialog.
return new MediaRouteChooserDialog(context, getTheme());
|
public android.app.Dialog | onCreateDialog(android.os.Bundle savedInstanceState)
MediaRouteChooserDialog dialog = onCreateChooserDialog(getActivity(), savedInstanceState);
dialog.setRouteTypes(getRouteTypes());
dialog.setExtendedSettingsClickListener(mExtendedSettingsClickListener);
return dialog;
|
public void | setExtendedSettingsClickListener(View.OnClickListener listener)
if (listener != mExtendedSettingsClickListener) {
mExtendedSettingsClickListener = listener;
MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog();
if (dialog != null) {
dialog.setExtendedSettingsClickListener(listener);
}
}
|
public void | setRouteTypes(int types)
if (types != getRouteTypes()) {
Bundle args = getArguments();
if (args == null) {
args = new Bundle();
}
args.putInt(ARGUMENT_ROUTE_TYPES, types);
setArguments(args);
MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog();
if (dialog != null) {
dialog.setRouteTypes(types);
}
}
|