다음을 통해 공유


AppNotificationBuilder.BuildNotification 메서드

정의

앱 알림에 대한 XML 페이로드를 나타내는 AppNotification 개체를 반환합니다.

public:
 virtual AppNotification ^ BuildNotification() = BuildNotification;
AppNotification BuildNotification();
public AppNotification BuildNotification();
function buildNotification()
Public Function BuildNotification () As AppNotification

반환

AppNotification 개체입니다.

예제

다음 예제에서는 AppNotificationBuilder의 instance AppNotification을 빌드하는 방법을 보여 줍니다.

var notification = new AppNotificationBuilder()
    .AddText("Notification text.")
    .BuildNotification();

AppNotificationManager.Default.Show(notification);

설명

AppNotificationBuilder의 메서드를 사용하여 앱 알림에 포함할 요소를 어셈블합니다. BuildNotificaion을 호출하여 에 전달할 수 있는 AppNotification 개체를 AppNotificationManager.Show(AppNotification)가져옵니다.

AppNotificationBuilder API를 사용하여 앱 알림에 대한 UI를 만드는 방법에 대한 지침은 앱 알림 콘텐츠를 참조하세요.

앱 알림에 대한 XML 스키마에 대한 참조 정보는 앱 알림 콘텐츠 스키마를 참조하세요.

적용 대상