Udostępnij za pośrednictwem


MutableContextWrapper.SetBaseContext(Context) Method

Definition

Change the base context for this 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

Parameters

base
Context

The new base context for this wrapper.

Attributes

Remarks

Change the base context for this ContextWrapper. All calls will then be delegated to the base context. Unlike ContextWrapper, the base context can be changed even after one is already set.

Java documentation for android.content.MutableContextWrapper.setBaseContext(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