Context.CreateAttributionContext(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return a new Context object for the current Context but attribute to a different tag.
[Android.Runtime.Register("createAttributionContext", "(Ljava/lang/String;)Landroid/content/Context;", "GetCreateAttributionContext_Ljava_lang_String_Handler", ApiSince=30)]
public virtual Android.Content.Context CreateAttributionContext (string? attributionTag);
[<Android.Runtime.Register("createAttributionContext", "(Ljava/lang/String;)Landroid/content/Context;", "GetCreateAttributionContext_Ljava_lang_String_Handler", ApiSince=30)>]
abstract member CreateAttributionContext : string -> Android.Content.Context
override this.CreateAttributionContext : string -> Android.Content.Context
Parameters
- attributionTag
- String
The tag or null
to create a context for the default.
Returns
A Context
that is tagged for the new attribution
- Attributes
Remarks
Return a new Context object for the current Context but attribute to a different tag. In complex apps attribution tagging can be used to distinguish between separate logical parts.
Java documentation for android.content.Context.createAttributionContext(java.lang.String)
.
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.