• 레퍼런스
  • 자습서
  • Notification

    Notification 객체는 앱이 지원하는 프로그래밍 언어에 접근하기 위한 객체입니다.

    상수

    Notification 객체의 상수
    Number

    STATE_CREATED = 1
    알림이 생성되었습니다.

    Number

    STATE_DEFAULT = 0
    알림이 생성되지 않았습니다.

    Number

    STATE_DISMISSED = -1
    알림이 제거되었습니다.

    프로퍼티

    Notification 객체의 프로퍼티
    Number

    state
    알림의 상태를 나타내는 상수입니다.

    메소드

    Notification 객체의 메소드

    create(id: Number)
    특정 ID의 알림을 생성하는 NotificationBuilder 객체를 반환합니다.

    void

    delete()
    알림을 상단바에서 제거합니다. 이미 알림이 제거된 상태일 경우 java.lang.IllegalStateException을 throw합니다.

    void

    update(title?: String, message?: String)
    생성된 알림의 제목과 내용을 수정합니다. null이 제공된 값은 수정하지 않습니다.