Context.CreateAttributionContext(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個新的 Context 物件,針對目前的 Context,但屬性是不同的標籤。
[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
參數
- attributionTag
- String
null標籤或用來建立預設上下文。
傳回
Context A標註了新的歸屬
- 屬性
備註
回傳一個新的 Context 物件,針對目前的 Context,但屬性是不同的標籤。 在複雜的應用程式中,歸因標籤可以用來區分不同的邏輯部分。
Java 文件 android.content.Context.createAttributionContext(java.lang.String)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。