MutableContextWrapper.SetBaseContext(Context) 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.
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.
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.