onNotificationPosted 이벤트 리스너
onNotificationPosted는 알림이 발생할 때 동작하는 이벤트 리스너입니다.
주의
앱의 설정 > 알림, 이벤트에서 onNotificationPosted 이벤트 사용을 활성화해야 동작합니다.
구문
JavaScript
function onNotificationPosted(statusBarNotification) {
}정보
NeonJS 프로젝트에서는 export function onNotificationPosted(statusBarNotification) { }와 같이 함수를 export해야 호출됩니다.
인자
statusBarNotificationandroid.service.notification.StatusBarNotification알림에 관한 정보가 담긴
android.service.notification.StatusBarNotification입니다.