Intent.SetClass メソッド

定義

オーバーロード

SetClass(Context, Class)

オブジェクトによって返される名前を使用して を呼び出 #setComponent(ComponentName) す場合の Class 利便性。

SetClass(Context, Type)

SetClass(Context, Class)

オブジェクトによって返される名前を使用して を呼び出 #setComponent(ComponentName) す場合の Class 利便性。

[Android.Runtime.Register("setClass", "(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;", "GetSetClass_Landroid_content_Context_Ljava_lang_Class_Handler")]
public virtual Android.Content.Intent SetClass (Android.Content.Context packageContext, Java.Lang.Class cls);
[<Android.Runtime.Register("setClass", "(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;", "GetSetClass_Landroid_content_Context_Ljava_lang_Class_Handler")>]
abstract member SetClass : Android.Content.Context * Java.Lang.Class -> Android.Content.Intent
override this.SetClass : Android.Content.Context * Java.Lang.Class -> Android.Content.Intent

パラメーター

packageContext
Context

このクラスを実装するアプリケーション パッケージのコンテキスト。

cls
Class

設定するクラス名。これは と setClassName(context, cls.getName())同じです。

戻り値

複数の呼び出しを 1 つのステートメントに連結するために、同じ Intent オブジェクトを返します。

属性

注釈

オブジェクトによって返される名前を使用して を呼び出 #setComponent(ComponentName) す場合の Class 利便性。

android.content.Intent.setClass(android.content.Context, java.lang.Class<?>)Java ドキュメント。

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

適用対象

SetClass(Context, Type)

public Android.Content.Intent SetClass (Android.Content.Context packageContext, Type type);
member this.SetClass : Android.Content.Context * Type -> Android.Content.Intent

パラメーター

packageContext
Context
type
Type

戻り値

注釈

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

適用対象