MediaRouter.RouteInfo.Tag Property

Definition

Set an application-specific tag object for this route.

public virtual Java.Lang.Object Tag { [Android.Runtime.Register("getTag", "()Ljava/lang/Object;", "GetGetTagHandler")] get; [Android.Runtime.Register("setTag", "(Ljava/lang/Object;)V", "GetSetTag_Ljava_lang_Object_Handler")] set; }
[<get: Android.Runtime.Register("getTag", "()Ljava/lang/Object;", "GetGetTagHandler")>]
[<set: Android.Runtime.Register("setTag", "(Ljava/lang/Object;)V", "GetSetTag_Ljava_lang_Object_Handler")>]
member this.Tag : Java.Lang.Object with get, set

Property Value

The tag object previously set by the application

Attributes

Remarks

Property getter documentation:

Java documentation for android.media.MediaRouter.RouteInfo.getTag().

Property setter documentation:

Set an application-specific tag object for this route. The application may use this to store arbitrary data associated with the route for internal tracking.

Note that the lifespan of a route may be well past the lifespan of an Activity or other Context; take care that objects you store here will not keep more data in memory alive than you intend.

Java documentation for android.media.MediaRouter.RouteInfo.setTag(java.lang.Object).

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

See also