MutableContextWrapper.SetBaseContext(Context) 方法

定義

更改這個 ContextWrapper 的基礎上下文。

[Android.Runtime.Register("setBaseContext", "(Landroid/content/Context;)V", "GetSetBaseContext_Landroid_content_Context_Handler")]
public virtual void SetBaseContext(Android.Content.Context? base);
[<Android.Runtime.Register("setBaseContext", "(Landroid/content/Context;)V", "GetSetBaseContext_Landroid_content_Context_Handler")>]
abstract member SetBaseContext : Android.Content.Context -> unit
override this.SetBaseContext : Android.Content.Context -> unit

參數

base
Context

這個包裝器的新基礎上下文。

屬性

備註

更改這個 ContextWrapper 的基礎上下文。 所有通話將被委派至基站上下文。 與 ContextWrapper 不同,基礎上下文即使已設定好,仍可更改。

Java 文件 android.content.MutableContextWrapper.setBaseContext(android.content.Context)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於