We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
MaterialsConsole

PushExtensionContext

PushExtensionContext is the context of PushExtensionAbility, and inherits from ExtensionContext.

Model restriction: This API can be used only in the stage model.

System capability: SystemCapability.Push.PushService

Since: 4.0.0(10)

Modules to Import

PhonePC/2in1TabletTVWearable
import { PushExtensionContext } from '@kit.PushKit';

PushExtensionContext

PhonePC/2in1TabletTVWearable

Model restriction: This attribute can be used only in the stage model.

System capability: SystemCapability.Push.PushService

Device behavior differences: For versions earlier than 5.1.0(18), this attribute is supported on phones, tablets, and PCs/2-in-1 devices, but does not work on other devices. For version 5.1.0(18), this attribute is supported on phones, tablets, PCs/2-in-1 devices, and wearables, but does not work on other devices. For version 5.1.1(19) or later, this attribute is supported on phones, tablets, PCs/2-in-1 devices, wearables, and TVs.

Since: 4.0.0(10)

This class inherits from ExtensionContext, and no content is added.

Search in References
Enter a keyword.