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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
 
Строка 1: Строка 1:
* [[ System.PushNotification.TPushService | Вверх к родителю: TPushService ]]
+
* [[ System.Classes.TComponent | Вверх к родителю: TComponent ]]
 
* [[ FGX.PushNotification | К модулю: FGX.PushNotification ]]
 
* [[ FGX.PushNotification | К модулю: FGX.PushNotification ]]
  
 
Delphi
 
Delphi
  
<syntaxhighlight lang="Delphi">TfgPushNotificationService = class (TPushService)</syntaxhighlight>
+
<syntaxhighlight lang="Delphi">TfgPushNotificationService = class (TComponent)</syntaxhighlight>
  
<p class="class-inheritance"><span class="type-border">[[System.PushNotification.TPushService|TPushService]]</span> -> <span class="type-border">[[FGX.PushNotification.TfgPushNotificationService|TfgPushNotificationService]]</span></p>
+
<p class="class-inheritance"><span class="type-border">[[System.Classes.TComponent|TComponent]]</span> -> <span class="type-border">[[FGX.PushNotification.TfgPushNotificationService|TfgPushNotificationService]]</span></p>
  
 
== Описание ==
 
== Описание ==
  
<p>Базовый класс Push-сервиса.</p>
+
<span style="color:gray">Описание отсутствует.</span>
 +
== Конструкторы ==
 +
 
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(AOwner: [[TComponent]])</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|}
 +
 
 +
== Свойства ==
 +
 
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StartupNotifications: [[TArray<FGX.PushNotification.TfgPushNotification>]]</code>
 +
<p>Возвращает уведомления, которые были переданы операционной системной приложению при старте.</p>
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Status: [[FGX.PushNotification.TfgPushServiceStatus|TfgPushServiceStatus]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>DeviceToken: [[string]]</code>
 +
 
 +
<p>Уникальный токен устройства, используемый сервером push-уведомлений для взаимодействия с текущим устройством.</p><div class="info">Если сервис не запущен, то вернет пустую строку.</div>
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>DeviceId: [[string]]</code>
 +
<p>Уникальный идентификатор устройства.</p>
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>ServiceName: [[TfgPushServiceName|TfgPushServiceName]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|}
 +
 
 +
== События ==
 +
 
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnDeviceTokenChanged: [[TfgDeviceTokenChangedEvent|TfgDeviceTokenChangedEvent]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|-
 +
| <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnPushNotificationReceived: [[TfgPushNotificationReceivedEvent|TfgPushNotificationReceivedEvent]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|-
 +
| <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnError: [[TfgErrorEvent|TfgErrorEvent]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|-
 +
| <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnStatusChanged: [[TfgStatusChangedEvent|TfgStatusChangedEvent]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|}
 +
 
 +
== Константы ==
 +
 
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultServiceName: [[string]]</code>
 +
<span style="color:gray">Описание отсутствует.</span>
 +
|}

Текущая версия на 17:24, 23 декабря 2022

Delphi

TfgPushNotificationService = class (TComponent)

TComponent -> TfgPushNotificationService

Описание

Описание отсутствует.

Конструкторы

constructor
Create(AOwner: TComponent)

Описание отсутствует.

Свойства

property
StartupNotifications: [[TArray<FGX.PushNotification.TfgPushNotification>]]

Возвращает уведомления, которые были переданы операционной системной приложению при старте.

property
Status: TfgPushServiceStatus

Описание отсутствует.

property
DeviceToken: string

Уникальный токен устройства, используемый сервером push-уведомлений для взаимодействия с текущим устройством.

Если сервис не запущен, то вернет пустую строку.
property
DeviceId: string

Уникальный идентификатор устройства.

property
ServiceName: TfgPushServiceName

Описание отсутствует.

События

event
OnDeviceTokenChanged: TfgDeviceTokenChangedEvent

Описание отсутствует.

event
OnPushNotificationReceived: TfgPushNotificationReceivedEvent

Описание отсутствует.

event
OnError: TfgErrorEvent

Описание отсутствует.

event
OnStatusChanged: TfgStatusChangedEvent

Описание отсутствует.

Константы

const
DefaultServiceName: string

Описание отсутствует.