Home
last modified time | relevance | path

Searched refs:subscription (Results 1 – 25 of 169) sorted by relevance

1234567

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/
H A Dsubscription_test.cpp76 Subscription subscription; variable
77 subscription.userId = 100;
78 subscription.id = "testId";
81 subscription.Marshal(node);
98 Subscription subscription; variable
112 Subscription subscription; variable
113 subscription.userId = 100;
125 Subscription subscription; variable
126 subscription.userId = 100;
174 Subscription subscription; variable
[all …]
/ohos5.0/docs/en/application-dev/notification/
H A Dnotification-subscription.md4 …notifications first. The notification subsystem provides two types of subscription APIs, allowing …
7 …de callbacks for subscription events, such as subscription success, notification reception, notifi…
24 The major APIs for notification subscription are described as follows. For details about the APIs, …
26 **Table 1** Major APIs for notification subscription
33 **Table 2** Callbacks for notification subscription
42 | onConnect?: () => void; | Callback for subscription.…
93 4. Initiate notification subscription.
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Derrorcode-preferences.md48 Failed to obtain subscription service.
52 Failed to obtain the subscription service in inter-process event subscription.
56 The platform does not support service subscription.
60 Deploy the subscription service on the platform.
/ohos5.0/docs/en/application-dev/basic-services/common-event/
H A Ditc-with-emitter.md8 …ber, and the subscriber executes the callback method set during event subscription. Unsubscribe fr…
19 | on | Event subscription| Continuously subscribes to an event until the event is unsubscribed from…
20 | once | Event subscription| Subscribes to an event once.|
36 …Use **on()** for continuous subscription or **once()** for one-time subscription. Set the events t…
51 …eceived only once using once(), while the event is received until the subscription is canceled usi…
89 …> If an event does not need to be subscribed to, cancel the subscription in a timely manner to pre…
H A DReadme-EN.md7 - [Common Event Subscription Overview](common-event-subscription-overview.md)
9 - [Subscribing to Common Events in Dynamic Mode](common-event-subscription.md)
11 …o Common Events in Static Mode (for System Applications Only)](common-event-static-subscription.md)
H A Dcommon-event-subscription.md6 In dynamic subscription mode, an application, when it is running, subscribes to a common event and …
39 // Used to save the created subscriber object for subsequent subscription and unsubscription.
47 …object and save the returned object for subsequent operations such as subscription and unsubscript…
61 4. Create a subscription callback, which is triggered when an event is received. The data returned …
64 // Callback for common event subscription.
H A Dcommon-event-unsubscription.md28 …rocedure described in [Subscribing to Common Events in Dynamic Mode](common-event-subscription.md).
33 // The subscriber object is created during event subscription.
/ohos5.0/docs/zh-cn/application-dev/reference/apis-sensor-service-kit/
H A Djs-apis-system-sensor.md51 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
100 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
147 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
194 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
243 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
293 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
344 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
394 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
441 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
476 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
[all …]
/ohos5.0/docs/en/contribute/
H A Dcommunication-in-community.md10 2. Wait until the browser goes to the subscription page of the mail list, which provides instructi…
11 3. Read the subscription instructions and provide an email address that you want to use to subscri…
12 …address and click **Subscribe**. You will receive an email asking you to confirm the subscription.
13 5. Reply the email to confirm your subscription.
/ohos5.0/docs/en/application-dev/dfx/
H A Dhiappevent-watcher-app-events-arkts.md41 …// Set the subscription callback trigger condition. For example, trigger a callback when one event…
43 …// Implement the subscription callback function to apply custom processing to the obtained event l…
52 …// Fetch the subscription event package based on the specified threshold (512 KB by default) until…
53 …// If all subscription event data is fetched, return a null event package to end this subscription
/ohos5.0/docs/zh-cn/application-dev/basic-services/common-event/
H A DReadme-CN.md5 - [动态订阅公共事件](common-event-subscription.md)
7 - [静态订阅公共事件(仅对系统应用开放)](common-event-static-subscription.md)
H A Dcommon-event-overview.md27 - 动态订阅:指订阅方在运行时调用公共事件订阅的API实现对公共事件的订阅,详细请参见[动态订阅公共事件](common-event-subscription.md)。
29 …自StaticSubscriberExtensionAbility的类实现对公共事件的订阅,详细请参见[静态订阅公共事件](common-event-static-subscription.md)。
/ohos5.0/docs/en/application-dev/reference/apis-sensor-service-kit/
H A Djs-apis-system-sensor.md51 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
100 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
147 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
194 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
243 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
293 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
344 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
394 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
441 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
476 console.error(`Failed to subscription. Code: ${code}, data: ${data}`);
[all …]
H A D_sensor.md33 | [Sensor_SubscriptionId](#sensor_subscriptionid) | Defines a struct for the sensor subscription ID…
34 …ttribute](#sensor_subscriptionattribute) | Defines a struct for the sensor subscription attribute.|
163 Defines a struct for the sensor subscription attribute.
175 Defines a struct for the sensor subscription ID, which uniquely identifies a sensor.
461 | id | Pointer to the sensor subscription ID. For details, see [Sensor_SubscriptionId](#sensor_subs…
462 | attribute | Pointer to the subscription attribute, which is used to specify the data reporting fr…
489 | id | Pointer to the sensor subscription ID. For details, see [Sensor_SubscriptionId](#sensor_subs…
825 | attribute | Pointer to the sensor subscription attribute. |
848 | attribute | Pointer to the sensor subscription attribute. |
871 | id | Pointer to the sensor subscription ID. |
[all …]
/ohos5.0/docs/en/application-dev/graphics/
H A Ddisplaysync-ui.md43 4. Set the expected frame rate range and register a subscription function through the **DisplaySync…
47subscription function runs in the UI main thread. To avoid adverse impact on the performance, time…
73 …ncSlow.on("frame", draw30); // Subscribe to the frame event and register the subscription function.
191 …ncSlow.on("frame", draw30); // Subscribe to the frame event and register the subscription function.
219 …ncFast.on("frame", draw60); // Subscribe to the frame event and register the subscription function.
/ohos5.0/docs/en/application-dev/device/stationary/
H A Dmultimodalawareness-kit-intro.md7 …scenario, an application needs to initiate a subscription request to the system and cancel the sub…
/ohos5.0/foundation/deviceprofile/device_info_manager/
H A DREADME.md44 │ └── subscribemanager // Header file for subscription management
50 │ └── subscribemanager // Implementation of subscription management
152 | eventCb | IProfileEventCallback | Yes | Callback used to return the subscription e…
180 // Cancel the subscription.
/ohos5.0/docs/en/application-dev/database/
H A Ddata-mgmt-overview.md27 …implements persistence of lightweight configuration data and supports subscription of data change …
29 …, encryption, and manual backup of data in KV stores and notification subscription. When an applic…
31 …, encryption, manually backup of data in RDB stores, and notification subscription. When an applic…
35 …on, and query of cross-application data on a device, and notification subscription. **DataShare** …
/ohos5.0/docs/en/application-dev/form/
H A Darkts-ui-widget-update-by-proxy.md28 3. The Widget Manager parses the subscription information of the widget provider and registers a su…
33 …ange in the database and publishes the new data to all currently registered subscription instances.
34 3. The Widget Manager parses data from the subscription instance and sends the data to the widget r…
78 - Configure the subscription information [proxyData](../reference/apis-form-kit/js-apis-app-form-fo…
162subscription template <!--Del-->[<!--DelEnd-->addTemplate<!--Del-->](../reference/apis-arkdata/js-…
/ohos5.0/docs/en/application-dev/application-models/
H A Dsubscribe-system-environment-variable-changes.md7 …l**. For details about the system environment variables that support subscription, see [Configura…
11 - [Using ApplicationContext for Subscription](#using-applicationcontext-for-subscription)
12 - [Using AbilityStage for Subscription](#using-abilitystage-for-subscription)
13 - [Using UIAbility for Subscription](#using-uiability-for-subscription)
14 - [Using ExtensionAbility for Subscription](#using-extensionability-for-subscription)
34 … private callbackId: number = 0; // ID of the subscription for system environment variable changes.
85 … private callbackId: number = 0; // ID of the subscription for system environment variable changes.
/ohos5.0/docs/en/application-dev/reference/apis-performance-analysis-kit/
H A Djs-apis-hisysevent-sys.md187 Defines event subscription rules.
200 Defines a watcher for event subscription.
206 | rules | [WatchRule](#watchrule)[] | Yes| Array of matching event subscription rules.|
207 | onEvent | function | Yes| Callback for event subscription: (info: [SysEventInfo](#syseventinfo)) …
208 | onServiceDied | function | Yes| Callback for disabling of event subscription: () => void|
214 Adds a watcher for event subscription.
224 | watcher | [Watcher](#watcher) | Yes| Watcher for event subscription.|
270 Removes a watcher used for event subscription.
280 | watcher | [Watcher](#watcher) | Yes| Watcher for event subscription.|
542 | rules | [QueryRule](#queryrule)[] | Yes | Array of event query rules for the subscription.|
H A Djs-apis-hiviewdfx-hiappevent.md562 | [AppEventPackageHolder](#appeventpackageholder) | Subscription data holder. If the subscription f…
582 // 1. If callback parameters are passed to the watcher, you can have subscription events processed …
614 …ters are passed to the watcher, you can have subscription events processed manually through the su…
631 // 3. You can have the watcher processed the subscription event in the onReceive function.
738 Defines a subscription data holder for processing subscription events.
744 A constructor used to create a holder object for subscription data. It is associated with a **Watch…
830 Extracts subscription event data based on the configured data size threshold or the number of appli…
831 1. When an application only calls **setSize()** , the subscription events are obtained based on the…
833 3. If neither **setSize()** nor **setRow()** is called, one subscription event is obtained by defau…
843 | [AppEventPackage](#appeventpackage) | Event package object. If all subscription event data has be…
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-commonEvent.md129 …scriber; // Used to save the created subscriber object for subsequent subscription and unsubscript…
178 …scriber; // Used to save the created subscriber object for subsequent subscription and unsubscript…
218 …bscriber;// Used to save the created subscriber object for subsequent subscription and unsubscript…
225 // Callback for common event subscription.
274 …scriber; // Used to save the created subscriber object for subsequent subscription and unsubscript…
281 // Callback for common event subscription.
H A Djs-apis-commonEventManager.md158 // Define a subscriber to save the created subscriber object for subsequent subscription and unsubs…
216 // Define a subscriber to save the created subscriber object for subsequent subscription and unsubs…
265 // Define a subscriber to save the created subscriber object for subsequent subscription and unsubs…
313 // Define a subscriber to save the created subscriber object for subsequent subscription and unsubs…
319 // Callback for common event subscription.
385 // Define a subscriber to save the created subscriber object for subsequent subscription and unsubs…
391 // Callback for common event subscription.
/ohos5.0/docs/en/application-dev/media/audio/
H A Dmic-management.md28subscription of the last instance takes effect, and the subscription of other instances is overwri…

1234567