機械翻訳について

通知を閉じる

Typescriptの例を次に示します:

const frameworkProvider: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID', 'v1');
    let notificationContext: INotificationContext = await frameworkProvider.getNotificationContext('notificationId007'); 
    const requestObject: IOperationRequest = frameworkProvider.requestHelper.createPublishRequest('CloseNotification') as IOperationRequest; 
    notificationContext.publish(requestObject).then((message) => {
        const response = message as INotificationOperationResponse;         
        //custom code   
    });
JavaScriptの例を次に示します:
const frameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('MyFirstExtensionID', 'v1');     
    let notificationContext = await frameworkProvider.getNotificationContext('notificationId007'); 
    const requestObject = frameworkProvider.requestHelper.createPublishRequest('CloseNotification');     
    notificationContext.publish(requestObject).then((resp) => {
        //custom code
    }).catch((err) => {
        //custom code
    });