Share via


PushNotificationChannelManagerForUser 클래스

정의

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 데 사용하는 개체를 만듭니다. 이러한 채널은 앱 또는 보조 타일을 통해 현재 사용자에게 바인딩됩니다.

public ref class PushNotificationChannelManagerForUser sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PushNotificationChannelManagerForUser final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PushNotificationChannelManagerForUser final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PushNotificationChannelManagerForUser
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PushNotificationChannelManagerForUser
Public NotInheritable Class PushNotificationChannelManagerForUser
상속
Object Platform::Object IInspectable PushNotificationChannelManagerForUser
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)

예제

다음 예제에서는 CreatePushNotificationChannelForApplicationAsync 메서드를 사용하여 호출 앱에 대한 푸시 알림 채널을 검색하는 방법을 보여 줍니다.

var pushNotifications = Windows.Networking.PushNotifications;
var channel;

function openNotificationsChannel() {
    var channelOperation = pushNotifications.PushNotificationChannelManagerForUser.createPushNotificationChannelForApplicationAsync();
    return channelOperation.then(function (newChannel) {
        channel = newChannel;
    }
);

다음 예제에서는 CreatePushNotificationChannelForSecondaryTileAsync 메서드를 사용하여 보조 타일에 대한 푸시 알림 채널을 검색하는 방법을 보여 줍니다.

var pushNotifications = Windows.Networking.PushNotifications;
var channel;

pushNotifications.PushNotificationChannelManagerForUser.createPushNotificationChannelForSecondaryTileAsync(myTileId).then(function (channel) {
    // Your code here.
})

설명

이 클래스에는 생성자가 없습니다. 사용에 대한 자세한 내용은 예제 섹션을 참조하세요.

버전 기록

Windows 버전 SDK 버전 추가된 값
1703 15063 CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer,String)
1703 15063 CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer,String,String)

속성

User

사용자를 가져옵니다.

메서드

CreatePushNotificationChannelForApplicationAsync()

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 호출 앱에 바인딩된 개체를 만듭니다.

CreatePushNotificationChannelForApplicationAsync(String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

CreatePushNotificationChannelForSecondaryTileAsync(String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 보조 타일에 바인딩된 개체를 만듭니다. 타일은 동일한 패키지에 있는 호출 앱 또는 다른 앱의 보조 타일일 수 있습니다.

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String)

WNS(Windows 푸시 알림 서비스)에서 푸시 알림 채널을 검색하는 지정된 앱에 바인딩된 개체를 만듭니다. 지정된 앱은 호출 앱과 동일한 패키지에 있어야 합니다.

적용 대상