menu
zywny_aprendizado
music_track/music_keep_alive.dart
MusicKeepAlive class
MusicKeepAlive
dark_mode
light_mode
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 setter
inherited
isOn
→
bool
Se há serviço nesta plataforma.
no setter
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
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
zywny_aprendizado
music_keep_alive
MusicKeepAlive class
music_keep_alive library