Sam
01/05/2019, 10:43 PMCBCentralManagerDelegate
https://developer.apple.com/documentation/corebluetooth/cbcentralmanagerdelegate. The conflicting methods are didDisconnect
and didFailToConnect
.olonho
01/05/2019, 11:07 PMGenerally Swift argument labels and Objective-C selector pieces are mapped to Kotlin
parameter names. Anyway these two concepts have different semantics, so sometimes
Swift/Objective-C methods can be imported with a clashing Kotlin signature. In this case
the clashing methods can be called from Kotlin using named arguments, e.g.:
[player moveTo:LEFT byMeters:17]
[player moveTo:UP byInches:42]
in Kotlin it would be:
player.moveTo(LEFT, byMeters = 17)
player.moveTo(UP, byInches = 42)
olonho
01/05/2019, 11:16 PMSuppress("CONFLICTING_OVERLOADS")
and see it it will workolonho
01/05/2019, 11:16 PMSam
01/05/2019, 11:37 PMdrofwarcs
01/06/2019, 4:04 AM