다음을 통해 공유


MediaRouter.RouteInfo.GetNameFormatted(Context) Method

Definition

Return the properly localized/resource user-visible name of this route.

[Android.Runtime.Register("getName", "(Landroid/content/Context;)Ljava/lang/CharSequence;", "GetGetName_Landroid_content_Context_Handler")]
public virtual Java.Lang.ICharSequence GetNameFormatted (Android.Content.Context context);
[<Android.Runtime.Register("getName", "(Landroid/content/Context;)Ljava/lang/CharSequence;", "GetGetName_Landroid_content_Context_Handler")>]
abstract member GetNameFormatted : Android.Content.Context -> Java.Lang.ICharSequence
override this.GetNameFormatted : Android.Content.Context -> Java.Lang.ICharSequence

Parameters

context
Context

Context used to resolve the correct configuration to load

Returns

The user-visible name of a media route. This is the string presented to users who may select this as the active route.

Attributes

Remarks

Return the properly localized/resource user-visible name of this route.

The route name identifies the destination represented by the route. It may be a user-supplied name, an alias, or device serial number.

Java documentation for android.media.MediaRouter.RouteInfo.getName(android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to