MusicKeepAlive class

Constructors

MusicKeepAlive({bool? enabled})
const
MusicKeepAlive.platform()
O de cada plataforma: ligado só no Android.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isOn → bool
Se há serviço nesta plataforma.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

askPermission() → Future<void>
Pede a permissão de notificação (Android 13 em diante), para a notificação de andamento aparecer. Sem ela alguns aparelhos tratam o serviço como invisível e o encerram com a tela apagada. Recusar não impede a medição.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → Future<void>
toString() → String
A string representation of this object.
inherited
update(int done, int total) → Future<void>
Liga o serviço (ou atualiza o andamento, se já corre).

Operators

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