언어

NotificationManager.UpdateAutomaticZenRule(String, AutomaticZenRule) 메서드

정의

지정된 선 규칙을 업데이트합니다.

[Android.Runtime.Register("updateAutomaticZenRule", "(Ljava/lang/String;Landroid/app/AutomaticZenRule;)Z", "GetUpdateAutomaticZenRule_Ljava_lang_String_Landroid_app_AutomaticZenRule_Handler", ApiSince=24)]
public virtual bool UpdateAutomaticZenRule(string? id, Android.App.AutomaticZenRule? automaticZenRule);
[<Android.Runtime.Register("updateAutomaticZenRule", "(Ljava/lang/String;Landroid/app/AutomaticZenRule;)Z", "GetUpdateAutomaticZenRule_Ljava_lang_String_Landroid_app_AutomaticZenRule_Handler", ApiSince=24)>]
abstract member UpdateAutomaticZenRule : string * Android.App.AutomaticZenRule -> bool
override this.UpdateAutomaticZenRule : string * Android.App.AutomaticZenRule -> bool

매개 변수

id
String

문자열: 업데이트할 규칙의 ID입니다.

automaticZenRule
AutomaticZenRule

AutomaticZenRule: 업데이트할 규칙입니다.

반품

규칙이 성공적으로 업데이트되었는지 여부입니다.

특성

설명

지정된 선 규칙을 업데이트합니다. Build.VERSION_CODES 전에. VANILLA_ICE_CREAM ConditionProviderService에서 백업되지 않은 규칙을 업데이트하면 이전에 활성화된 경우 비활성화됩니다. Build.VERSION_CODES 시작합니다. VANILLA_ICE_CREAM 규칙의 정의가 실제로 변경되는 경우에만 발생합니다. 이 패키지에 정책 액세스 권한이 부여되지 않은 경우 SecurityException을 throw합니다. isNotificationPolicyAccessGranted()를 참조하세요. 호출자는 자신이 소유한 규칙만 업데이트할 수 있습니다. AutomaticZenRule.getOwner를 참조하세요.

이 페이지의 콘텐츠 및 코드 샘플에는 콘텐츠 라이선스에 설명된 라이선스가 적용됩니다. Java 및 OpenJDK는 Oracle 및/또는 해당 계열사의 상표 또는 등록 상표입니다.

마지막 업데이트 날짜: 2026-08-03 UTC

에 대한 android.app.NotificationManager.updateAutomaticZenRuleAndroid 참조

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상