1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Notify関数でアプリ上部に通知を表示する

Posted at

Notify関数で画面上部に通知を表示することができます。
image.png

Notify("メッセージ")

▲OnSelectプロパティなどに上記のように記述することで使用できます。
シンプルで使いやすい関数です。

image.png
複数行テキストはこのように表示されました。

さらに第2引数を以下のように設定することで、通知のアイコンと色を変えることができます。

▼警告(黄色)
image.png

Notify("メッセージ",NotificationType.Warning)

▼失敗(赤)
image.png

Notify("メッセージ",NotificationType.Error)

▼成功(緑)
image.png

Notify("メッセージ",NotificationType.Success)

表示出来るのは文字列に限られますが、関数のテストなどにも活用しています。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?