FGX.Toasts.IFGXToastService: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 11: Строка 11:
  
 
<p>Service interface for working with Toasts</p>
 
<p>Service interface for working with Toasts</p>
 +
 +
== Методы ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">CreateToast(const AMessage: [[string]]; const ADuration: [[FGX.Toasts.TfgToastDuration|TfgToastDuration]]): [[FGX.Toasts.TfgToast|TfgToast]]</code>
 +
<p>Creates instance of Toast wit specified parameters</p>
 +
|-
 +
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Show(const AToast: [[FGX.Toasts.TfgToast|TfgToast]])</code>
 +
<p>Shows toast</p>
 +
|-
 +
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Cancel(const AToast: [[FGX.Toasts.TfgToast|TfgToast]])</code>
 +
<p>Hides toast</p>
 +
|}

Версия 02:54, 13 июня 2019

Delphi

IFGXToastService = interface (IInterface)

IInterface -> IFGXToastService

Описание

Service interface for working with Toasts

Методы

function
CreateToast(const AMessage: string; const ADuration: TfgToastDuration): TfgToast

Creates instance of Toast wit specified parameters

procedure
Show(const AToast: TfgToast)

Shows toast

procedure
Cancel(const AToast: TfgToast)

Hides toast