NotificationManager.Cancel 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 속성 | Description |
|---|---|
| Cancel(Int32) |
이전에 게시된 알림을 취소합니다. |
| Cancel(String, Int32) |
이전에 게시된 알림을 취소합니다. |
Cancel(Int32)
이전에 게시된 알림을 취소합니다.
[Android.Runtime.Register("cancel", "(I)V", "GetCancel_IHandler")]
public virtual void Cancel(int id);
[<Android.Runtime.Register("cancel", "(I)V", "GetCancel_IHandler")>]
abstract member Cancel : int -> unit
override this.Cancel : int -> unit
매개 변수
- id
- Int32
int
- 특성
설명
이전에 게시된 알림을 취소합니다. 알림이 현재 포그라운드 서비스 또는 사용자가 시작한 작업을 나타내지 않으면 UI에서 제거되고 라이브 알림 수신기에 알림이 표시되므로 UI에서 알림을 제거할 수 있습니다.
에 대한 android.app.NotificationManager.cancelAndroid 참조
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.
적용 대상
Cancel(String, Int32)
이전에 게시된 알림을 취소합니다.
[Android.Runtime.Register("cancel", "(Ljava/lang/String;I)V", "GetCancel_Ljava_lang_String_IHandler")]
public virtual void Cancel(string? tag, int id);
[<Android.Runtime.Register("cancel", "(Ljava/lang/String;I)V", "GetCancel_Ljava_lang_String_IHandler")>]
abstract member Cancel : string * int -> unit
override this.Cancel : string * int -> unit
매개 변수
- tag
- String
문자열: 이 값은 null일 수 있습니다.
- id
- Int32
int
- 특성
설명
이전에 게시된 알림을 취소합니다. 알림이 현재 포그라운드 서비스 또는 사용자가 시작한 작업을 나타내지 않으면 UI에서 제거되고 라이브 알림 수신기에 알림이 표시되므로 UI에서 알림을 제거할 수 있습니다.
에 대한 android.app.NotificationManager.cancelAndroid 참조
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.