diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-11-30 21:22:20 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-15 18:47:22 +0000 |
| commit | 7c503d26b962268098103a532a09cf22d0f017f5 (patch) | |
| tree | 489bd2a5e4ed6c11c860328112a44802203c628c /android/src/main | |
| parent | 496658c6eb5d027ce4f91e36391df647535b052c (diff) | |
| download | mullvadvpn-7c503d26b962268098103a532a09cf22d0f017f5.tar.xz mullvadvpn-7c503d26b962268098103a532a09cf22d0f017f5.zip | |
Create a `ServiceEndpoint` helper class
Diffstat (limited to 'android/src/main')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt new file mode 100644 index 0000000000..d115958979 --- /dev/null +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt @@ -0,0 +1,15 @@ +package net.mullvad.mullvadvpn.service.endpoint + +import android.os.Looper +import net.mullvad.mullvadvpn.ipc.DispatchingHandler +import net.mullvad.mullvadvpn.ipc.Request + +class ServiceEndpoint(looper: Looper) { + internal val dispatcher = DispatchingHandler(looper) { message -> + Request.fromMessage(message) + } + + fun onDestroy() { + dispatcher.onDestroy() + } +} |
