FGX.Toasts.IFGXToastService: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 7: | Строка 7: | ||
<p class="class-inheritance"><span class="type-border">[[System.IInterface|IInterface]]</span> -> <span class="type-border">[[FGX.Toasts.IFGXToastService|IFGXToastService]]</span></p> | <p class="class-inheritance"><span class="type-border">[[System.IInterface|IInterface]]</span> -> <span class="type-border">[[FGX.Toasts.IFGXToastService|IFGXToastService]]</span></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:55, 1 июля 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 |