Instrumentation.NewApplication メソッド

定義

オーバーロード

NewApplication(Class, Context)

プロセスの オブジェクトのインスタンス化を Application 実行します。

NewApplication(ClassLoader, String, Context)

プロセスの オブジェクトのインスタンス化を Application 実行します。

NewApplication(Class, Context)

プロセスの オブジェクトのインスタンス化を Application 実行します。

[Android.Runtime.Register("newApplication", "(Ljava/lang/Class;Landroid/content/Context;)Landroid/app/Application;", "")]
public static Android.App.Application? NewApplication (Java.Lang.Class? clazz, Android.Content.Context? context);
[<Android.Runtime.Register("newApplication", "(Ljava/lang/Class;Landroid/content/Context;)Landroid/app/Application;", "")>]
static member NewApplication : Java.Lang.Class * Android.Content.Context -> Android.App.Application

パラメーター

clazz
Class

Application オブジェクトの作成元として使用されるクラス。

context
Context

アプリケーションを初期化するコンテキスト

戻り値

新しくインスタンス化された Application オブジェクト。

属性

注釈

プロセスの オブジェクトのインスタンス化を Application 実行します。 既定の実装では、通常のシステム動作が提供されます。

の Java ドキュメント android.app.Instrumentation.newApplication(java.lang.Class<?>, android.content.Context)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NewApplication(ClassLoader, String, Context)

プロセスの オブジェクトのインスタンス化を Application 実行します。

[Android.Runtime.Register("newApplication", "(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/content/Context;)Landroid/app/Application;", "GetNewApplication_Ljava_lang_ClassLoader_Ljava_lang_String_Landroid_content_Context_Handler")]
public virtual Android.App.Application? NewApplication (Java.Lang.ClassLoader? cl, string? className, Android.Content.Context? context);
[<Android.Runtime.Register("newApplication", "(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/content/Context;)Landroid/app/Application;", "GetNewApplication_Ljava_lang_ClassLoader_Ljava_lang_String_Landroid_content_Context_Handler")>]
abstract member NewApplication : Java.Lang.ClassLoader * string * Android.Content.Context -> Android.App.Application
override this.NewApplication : Java.Lang.ClassLoader * string * Android.Content.Context -> Android.App.Application

パラメーター

cl
ClassLoader

オブジェクトのインスタンス化に使用する ClassLoader。

className
String

Application オブジェクトを実装するクラスの名前。

context
Context

アプリケーションを初期化するコンテキスト

戻り値

新しくインスタンス化された Application オブジェクト。

属性

例外

注釈

プロセスの オブジェクトのインスタンス化を Application 実行します。 既定の実装では、通常のシステム動作が提供されます。

の Java ドキュメント android.app.Instrumentation.newApplication(java.lang.ClassLoader, java.lang.String, android.content.Context)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象