@mica/sdk (SDK contract v1)
    Preparing search index...

    Function useNotificationSettingsWrite

    • OS Service Hook for changing notification preferences (MICA-127) — the master switches (toasts, sound, badges, Do Not Disturb) and the per-app policy. Separate from useNotificationSettings(), which only reads it; see its own doc for why every member throws inside a sandboxed add-on regardless of what its manifest declares.

      Returns {
          clearAppNotificationPolicy: (appId: string) => void;
          setAppNotificationPolicy: (
              appId: string,
              patch: Partial<AppNotificationPolicy>,
          ) => void;
          setBadgesEnabled: (value: boolean) => void;
          setDndEnabled: (value: boolean) => void;
          setNotificationSoundEnabled: (value: boolean) => void;
          setToastsEnabled: (value: boolean) => void;
      }