You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general, any object may conform to a delegate protocol as long as it implements the required methods. For example, some classes in UIKit may already be conforming to some protocols, but these information are not captured by the Java class hierarchy.
A more specific example: UIViewController actually conforms to UIGestureRecognizerDelegate.
The text was updated successfully, but these errors were encountered:
I actually like the constraint placed by setDelegate. Usually the optional method/required method thingy could be handled by xxDelegateAdapter. In the case of reusing other classes, I think the best we can do is to model after Xamarin, ie providing a setWeakDelegate(Object) that puts all the trust on developers
In general, any object may conform to a delegate protocol as long as it implements the required methods. For example, some classes in UIKit may already be conforming to some protocols, but these information are not captured by the Java class hierarchy.
A more specific example: UIViewController actually conforms to UIGestureRecognizerDelegate.
The text was updated successfully, but these errors were encountered: