https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Michal Klimczak

04/27/2021, 5:32 PM
This might be more of a multiplatform question: how do I extend
AVAudioPlayerDelegateProtocol
and not go insane? https://kotlinlang.slack.com/archives/C3SGXARS6/p1619544378255600
✔️ 1
k

krzysztof

04/28/2021, 7:49 AM
in that case, your
object
needs to inherit from
NSObject()
class to provide all those implementation from the protocol:
Copy code
val player = object: NSObject(), AVAudioPlayerDelegateProtocol {}
m

Michal Klimczak

04/28/2021, 7:59 AM
yep, figured that out eventually (in the linked thread), but thanks anyway 🙂
k

krzysztof

04/28/2021, 8:00 AM
great 👍