etolstoy
07/27/2023, 9:25 AM@Suppress("CONFLICTING_OVERLOADS")
annotation (documentation) to suppress errors when overriding methods from Objective-C protocols and classes?
1️⃣ Yes, I’ve frequently used it in my projects.
2️⃣ Yes, I’ve occasionally used it in my projects.
3️⃣ Yes, I have used this annotation, but only in samples, not in real projects.
4️⃣ No, I have overridden Objective-C methods, but I didn’t use this annotation.
5️⃣ No, I have never overridden any Objective-C methods.
If you have used this annotation, please share in 🧵 what specific protocols or classes methods you overrided.Rick Clephas
07/27/2023, 10:10 AMVlad
07/27/2023, 10:53 AMobject : NSObject(), WKNavigationDelegateProtocol {
@Suppress("CONFLICTING_OVERLOADS")
override fun webView(
webView: WKWebView,
didCommitNavigation: WKNavigation?
) {
onPageStarted()
}
@Suppress("CONFLICTING_OVERLOADS")
override fun webView(
webView: WKWebView,
didFinishNavigation: WKNavigation?
) {
onPageFinished()
}
..
Thomas
07/27/2023, 11:19 AMCBCentralManagerDelegateProtocol
AVCaptureVideoDataOutputSampleBufferDelegateProtocol
CBPeripheralDelegateProtocol
NSNetServiceBrowserDelegateProtocol
SKPaymentTransactionObserverProtocol
mkrussel
07/27/2023, 11:23 AMMKMapViewDelegateProtocol
.Alex Azarov
07/29/2023, 10:47 AMUITableViewDelegate
is another example where the annotation is neededlouiscad
07/30/2023, 5:40 PM