다음을 통해 공유


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을 throw합니다.

에 대한 android.content.ContextWrapper.attachBaseContext(android.content.Context)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상