Replies: 1 comment
-
Actually, I think I have it figured out. ComponentName ultimately puts out a string, so you can maneuver through it that way:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on an app that has an audio player to play an HLS livestream. I have figured out how to implement that in iOS and in Android, but I'm trying to figure out how to control that playback via a service in Android so that I can use the system media controls and all that.
The main question I have is how would I translate this into something Swift-friendly:
val sessionToken = SessionToken(this, ComponentName(this, PlaybackService::class.java))
I know that
val
is essentiallylet
, but it's theComponentName()
that is giving me issues, specifically the::class.java
. In this context, does anyone know what the::
means?Beta Was this translation helpful? Give feedback.
All reactions