![]() |
Speedify SDK for Android 15.5.0
|
Foreground Service Event Interface. More...
Additional Inherited Members | |
![]() | |
default void | OnServiceCreate (@NonNull Service service) |
Callback for vpn service OnCreate. | |
default void | OnServiceDestroy (@NonNull Service service) |
Callback for vpn service OnDestroy. | |
default void | OnServiceRemoved (@NonNull Service service) |
Callback for vpn service OnRemoved. | |
default void | OnServiceRestart (State lastState) |
Callback when vpn service restarts after a crash, an application update, or any other unclean shutdown. | |
default boolean | OnServiceStartError () |
Error starting the vpn service. | |
default boolean | OnServiceInterruptedError () |
Error when another VPN starts, interrupting Speedify. | |
![]() | |
void | UpdateForegroundNotification (@NonNull Service service, @NonNull ServiceData serviceData) |
Callback to show a notification of the service state. | |
void | HideForegroundNotification (@NonNull Service service) |
Callback when vpn service task is removed. | |
Foreground Service Event Interface.
All calls happen from the background :vpnservice process. All calls are sent from background threads.
IForegroundServiceStateReceiver
and IForegroundNotificationReceiver
instead.