Skip to content

Most visited

Recently visited

navigation

MediaRouteControllerDialogFragment

public class MediaRouteControllerDialogFragment
extends DialogFragment

java.lang.Object
   ↳ android.support.v4.app.Fragment
     ↳ android.support.v4.app.DialogFragment
       ↳ android.support.v7.app.MediaRouteControllerDialogFragment


Media route controller dialog fragment.

Creates a MediaRouteControllerDialog. The application may subclass this dialog fragment to customize the media route controller dialog.

Summary

Inherited constants

From class android.support.v4.app.DialogFragment

Public constructors

MediaRouteControllerDialogFragment()

Creates a media route controller dialog fragment.

Public methods

void onConfigurationChanged(Configuration newConfig)

Called by the system when the device configuration changes while your component is running.

MediaRouteControllerDialog onCreateControllerDialog(Context context, Bundle savedInstanceState)

Called when the controller dialog is being created.

Dialog onCreateDialog(Bundle savedInstanceState)

Override to build your own custom Dialog container.

void onStop()

Called when the Fragment is no longer started.

Inherited methods

From class android.support.v4.app.DialogFragment
From class android.support.v4.app.Fragment
From class java.lang.Object
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.content.ComponentCallbacks
From interface android.view.View.OnCreateContextMenuListener

Public constructors

MediaRouteControllerDialogFragment

MediaRouteControllerDialogFragment ()

Creates a media route controller dialog fragment.

All subclasses of this class must also possess a default constructor.

Public methods

onConfigurationChanged

void onConfigurationChanged (Configuration newConfig)

Called by the system when the device configuration changes while your component is running. Note that, unlike activities, other components are never restarted when a configuration changes: they must always deal with the results of the change, such as by re-retrieving resources.

At the time that this function has been called, your Resources object will have been updated to return resource values matching the new configuration.

For more information, read Handling Runtime Changes.

Parameters
newConfig Configuration: The new device configuration.

onCreateControllerDialog

MediaRouteControllerDialog onCreateControllerDialog (Context context, 
                Bundle savedInstanceState)

Called when the controller dialog is being created.

Subclasses may override this method to customize the dialog.

Parameters
context Context
savedInstanceState Bundle
Returns
MediaRouteControllerDialog

onCreateDialog

Dialog onCreateDialog (Bundle savedInstanceState)

Override to build your own custom Dialog container. This is typically used to show an AlertDialog instead of a generic Dialog; when doing so, onCreateView(LayoutInflater, ViewGroup, Bundle) does not need to be implemented since the AlertDialog takes care of its own content.

This method will be called after onCreate(Bundle) and before onCreateView(LayoutInflater, ViewGroup, Bundle). The default implementation simply instantiates and returns a Dialog class.

Note: DialogFragment own the Dialog.setOnCancelListener and Dialog.setOnDismissListener callbacks. You must not set them yourself. To find out about these events, override onCancel(DialogInterface) and onDismiss(DialogInterface).

Parameters
savedInstanceState Bundle: The last saved instance state of the Fragment, or null if this is a freshly created Fragment.
Returns
Dialog Return a new Dialog instance to be displayed by the Fragment.

onStop

void onStop ()

Called when the Fragment is no longer started. This is generally tied to Activity.onStop of the containing Activity's lifecycle.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.