Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Jan 22, 2025
1 parent 566d66d commit 96f831d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ SDK to use, including the app name and configuration directory.
import android.content.Context
import io.lantern.sdk.Lantern

Lantern.setup("HelloVPN", "HelloVPN/config")
val context: Context = // ...

Lantern.setup(context, "HelloVPN", "HelloVPN/config")
```

### Starting Lantern
Expand All @@ -35,11 +37,13 @@ Lantern.setup("HelloVPN", "HelloVPN/config")
import android.content.Context
import io.lantern.sdk.Lantern

...
val context: Context = ...

val context: Context = // ...
val appName = "your app name assigned by Lantern"
val proxyAddr = ":8080"
val startTimeoutMillis = 60000L // 60 seconds
val proxyAllTraffic = true

Lantern.start(context, appName, proxyAddr, proxyAllTraffic, startTimeoutMillis)
```

Expand Down

0 comments on commit 96f831d

Please sign in to comment.