Toast.MakeText メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
MakeText(Context, ICharSequence, ToastLength) |
テキストのみを含む標準トーストを作成します。 |
MakeText(Context, Int32, ToastLength) |
リソースからのテキストのみを含む標準トーストを作成します。 |
MakeText(Context, String, ToastLength) |
テキストのみを含む標準トーストを作成します。 |
MakeText(Context, ICharSequence, ToastLength)
テキストのみを含む標準トーストを作成します。
[Android.Runtime.Register("makeText", "(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;", "")]
public static Android.Widget.Toast? MakeText (Android.Content.Context? context, Java.Lang.ICharSequence? text, Android.Widget.ToastLength duration);
[<Android.Runtime.Register("makeText", "(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;", "")>]
static member MakeText : Android.Content.Context * Java.Lang.ICharSequence * Android.Widget.ToastLength -> Android.Widget.Toast
パラメーター
- context
- Context
使用するコンテキスト。 通常は、 android.app.Application
オブジェクトまたは android.app.Activity
オブジェクトです。
- text
- ICharSequence
表示するテキスト。 書式設定されたテキストを使用できます。
- duration
- ToastLength
メッセージを表示する期間。 #LENGTH_SHORT
または #LENGTH_LONG
のいずれか
戻り値
- 属性
注釈
テキストのみを含む標準トーストを作成します。
の Java ドキュメント android.widget.Toast.makeText(android.content.Context, java.lang.CharSequence, int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
MakeText(Context, Int32, ToastLength)
リソースからのテキストのみを含む標準トーストを作成します。
[Android.Runtime.Register("makeText", "(Landroid/content/Context;II)Landroid/widget/Toast;", "")]
public static Android.Widget.Toast? MakeText (Android.Content.Context? context, int resId, Android.Widget.ToastLength duration);
[<Android.Runtime.Register("makeText", "(Landroid/content/Context;II)Landroid/widget/Toast;", "")>]
static member MakeText : Android.Content.Context * int * Android.Widget.ToastLength -> Android.Widget.Toast
パラメーター
- context
- Context
使用するコンテキスト。 通常は、 android.app.Application
オブジェクトまたは android.app.Activity
オブジェクトです。
- resId
- Int32
使用する文字列リソースのリソース ID。 書式設定されたテキストを使用できます。
- duration
- ToastLength
メッセージを表示する期間。 #LENGTH_SHORT
または #LENGTH_LONG
のいずれか
戻り値
- 属性
例外
注釈
リソースからのテキストのみを含む標準トーストを作成します。
の Java ドキュメント android.widget.Toast.makeText(android.content.Context, int, int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
MakeText(Context, String, ToastLength)
テキストのみを含む標準トーストを作成します。
public static Android.Widget.Toast? MakeText (Android.Content.Context? context, string? text, Android.Widget.ToastLength duration);
static member MakeText : Android.Content.Context * string * Android.Widget.ToastLength -> Android.Widget.Toast
パラメーター
- context
- Context
使用するコンテキスト。 通常は、 android.app.Application
オブジェクトまたは android.app.Activity
オブジェクトです。
- text
- String
表示するテキスト。 書式設定されたテキストを使用できます。
- duration
- ToastLength
メッセージを表示する期間。 #LENGTH_SHORT
または #LENGTH_LONG
のいずれか
戻り値
注釈
テキストのみを含む標準トーストを作成します。
の Java ドキュメント android.widget.Toast.makeText(android.content.Context, java.lang.CharSequence, int)
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。