Skip to content

Commit

Permalink
[ZEUS-4737] Updated higlights for code
Browse files Browse the repository at this point in the history
  • Loading branch information
KharchenkoAlex committed Aug 29, 2024
1 parent 903910d commit 9572531
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions docs/data/tutorials/playbacksdk/getstarted.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,11 @@
" super.onCreate(savedInstanceState)",
"",
" val apiKey = \"API_KEY\"",
" val customUserAgent = \"okhttp/${okhttp3.OkHttp.VERSION}\"",
"",
" PlaybackSDKManager.updateCastContext(this)",
"",
" // Initialize SDK with the settings",
" PlaybackSDKManager.initialize(apiKey, userAgent = userAgentHeader) { license, error ->",
" PlaybackSDKManager.initialize(apiKey) { license, error ->",
"",
" error?.let {",
" Log.e(this::class.simpleName, it.toString())",
Expand Down Expand Up @@ -690,22 +689,22 @@
"fileName": "PlayBackDemoAppWithUserAgent.kt",
"highlights": [
{
"line": 36
"line": 17
},
{
"line": 37
"line": 18
},
{
"line": 40
"line": 22
},
{
"line": 41
"line": 23
},
{
"line": 42
"line": 24
},
{
"line": 43
"line": 25
}
],
"identifier": "PlayBackDemoAppWithUserAgent.kt",
Expand All @@ -727,12 +726,16 @@
" super.onCreate(savedInstanceState)",
"",
" val apiKey = \"API_KEY\"",
" // Should match the user agent of the HTTP client used in the app",
" val customUserAgent = \"okhttp/${okhttp3.OkHttp.VERSION}\"",
"",
" PlaybackSDKManager.updateCastContext(this)",
"",
" // Initialize SDK with the settings",
" PlaybackSDKManager.initialize(apiKey, userAgent = userAgentHeader) { license, error ->",
" PlaybackSDKManager.initialize(",
" apiKey = apiKey,",
" userAgent = userAgentHeader",
" ) { license, error ->",
"",
" error?.let {",
" Log.e(this::class.simpleName, it.toString())",
Expand Down

0 comments on commit 9572531

Please sign in to comment.