ContextWrapper.AttachBaseContext(Context) メソッド

定義

この ContextWrapper の基本コンテキストを設定します。

[Android.Runtime.Register("attachBaseContext", "(Landroid/content/Context;)V", "GetAttachBaseContext_Landroid_content_Context_Handler")]
protected virtual void AttachBaseContext (Android.Content.Context? base);
[<Android.Runtime.Register("attachBaseContext", "(Landroid/content/Context;)V", "GetAttachBaseContext_Landroid_content_Context_Handler")>]
abstract member AttachBaseContext : Android.Content.Context -> unit
override this.AttachBaseContext : Android.Content.Context -> unit

パラメーター

base
Context

このラッパーの新しいベース コンテキスト。

属性

注釈

この ContextWrapper の基本コンテキストを設定します。 その後、すべての呼び出しが基本コンテキストに委任されます。 ベース コンテキストが既に設定されている場合は、IllegalStateException をスローします。

の Java ドキュメントandroid.content.ContextWrapper.attachBaseContext(android.content.Context)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象