SwitchPreference コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| SwitchPreference(Context) |
既定のスタイル オプションを使用して、新しい SwitchPreference を作成します。 |
| SwitchPreference(Context, IAttributeSet) |
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。 |
| SwitchPreference(IntPtr, JniHandleOwnership) |
JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。 |
| SwitchPreference(Context, IAttributeSet, Int32) |
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。 |
| SwitchPreference(Context, IAttributeSet, Int32, Int32) |
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。 |
SwitchPreference(Context)
既定のスタイル オプションを使用して、新しい SwitchPreference を作成します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public SwitchPreference(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Preferences.SwitchPreference : Android.Content.Context -> Android.Preferences.SwitchPreference
パラメーター
- context
- Context
このユーザー設定のスタイルを設定するコンテキスト
- 属性
注釈
既定のスタイル オプションを使用して、新しい SwitchPreference を作成します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SwitchPreference(Context, IAttributeSet)
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public SwitchPreference(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Preferences.SwitchPreference : Android.Content.Context * Android.Util.IAttributeSet -> Android.Preferences.SwitchPreference
パラメーター
- context
- Context
このユーザー設定のスタイルを設定するコンテキスト
- attrs
- IAttributeSet
既定とは異なるスタイル属性
- 属性
注釈
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SwitchPreference(IntPtr, JniHandleOwnership)
JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。
protected SwitchPreference(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Preferences.SwitchPreference : nativeint * Android.Runtime.JniHandleOwnership -> Android.Preferences.SwitchPreference
パラメーター
- transfer
- JniHandleOwnership
JniHandleOwnership処理方法を示すjavaReference
注釈
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SwitchPreference(Context, IAttributeSet, Int32)
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public SwitchPreference(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Preferences.SwitchPreference : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Preferences.SwitchPreference
パラメーター
- context
- Context
このユーザー設定のスタイルを設定するコンテキスト
- attrs
- IAttributeSet
既定とは異なるスタイル属性
- defStyleAttr
- Int32
ビューの既定値を提供するスタイル リソースへの参照を含む現在のテーマの属性。 既定値を探さない場合は 0 にすることができます。
- 属性
注釈
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SwitchPreference(Context, IAttributeSet, Int32, Int32)
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public SwitchPreference(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Preferences.SwitchPreference : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Preferences.SwitchPreference
パラメーター
- context
- Context
このユーザー設定のスタイルを設定するコンテキスト
- attrs
- IAttributeSet
既定とは異なるスタイル属性
- defStyleAttr
- Int32
ビューの既定値を提供するスタイル リソースへの参照を含む現在のテーマの属性。 既定値を探さない場合は 0 にすることができます。
- defStyleRes
- Int32
defStyleAttr が 0 の場合、またはテーマで見つからない場合にのみ使用される、ビューの既定値を提供するスタイル リソースのリソース識別子。 既定値を探さない場合は 0 にすることができます。
- 属性
注釈
指定したスタイル オプションを使用して、新しい SwitchPreference を構築します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。