AccessoryManager.GetEnabledAccessoryNotificationTypes 方法

定义

获取由 AccessoryNotificationType 枚举表示的启用通知类型的列表。

public:
 static int GetEnabledAccessoryNotificationTypes();
 static int GetEnabledAccessoryNotificationTypes();
public static int GetEnabledAccessoryNotificationTypes();
function getEnabledAccessoryNotificationTypes()
Public Shared Function GetEnabledAccessoryNotificationTypes () As Integer

返回

Int32

int

这些值是 AccessoryNotificationType 枚举中标志的位标志组合。 可以同时或枚举值来指示要针对哪些通知类型发出警报。

Windows 要求

应用功能
accessoryManager

注解

调用此 API 需要在应用程序清单中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

适用于