SORIAndroidNotificationOptions class

Android microphone foreground-service notification.

title and body are the listening content. stopAction controls the notification's stop action: null keeps the SDK default label, SORIAndroidNotificationAction.hidden removes it, and SORIAndroidNotificationAction.labeled sets a custom label. A stop from that action is reported as a normal stateChanged STOPPED event. visibleChannel true posts the notification to a separate, silent but visible channel (IMPORTANCE_LOW, shown in the status bar); the default false keeps the 0.4.2 notification on its IMPORTANCE_MIN channel, which some launchers hide or collapse. Unset fields keep the native defaults, which are the 0.4.2 ones.

Constructors

SORIAndroidNotificationOptions({String? title, String? body, String? iconResourceName, SORIAndroidNotificationAction? stopAction, bool visibleChannel = false})
const

Properties

body → String?
final
hashCode → int
The hash code for this object.
no setterinherited
iconResourceName → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stopAction → SORIAndroidNotificationAction?
final
title → String?
final
visibleChannel → bool
Android only: post the notification to the visible, silent channel.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited