menu
flutter_background_service package
documentation
flutter_background_service.dart
IosConfiguration class
IosConfiguration class
dark_mode
light_mode
IosConfiguration
class
Constructors
IosConfiguration.new
({
dynamic
onForeground
(
ServiceInstance
service
)?,
FutureOr
<
bool
>
onBackground
(
ServiceInstance
service
)?,
bool
autoStart
=
true
})
Properties
autoStart
→
bool
whether service auto start after configure.
final
hashCode
→
int
The hash code for this object.
no setter
inherited
onBackground
→
FutureOr
<
bool
>
Function
(
ServiceInstance
service
)
?
must be a top level or static method this method will be executed by background fetch make sure you don't execute long running task there because of limitations on ios recommended maximum executed duration is only 15-20 seconds.
final
onForeground
→ dynamic Function
(
ServiceInstance
service
)
?
must be a top level or static method this method will be executed when app is in foreground
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
flutter_background_service package
documentation
flutter_background_service
IosConfiguration class
flutter_background_service library