Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Improve header documentation for MGLObservable (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Rex authored Sep 3, 2020
1 parent f1d117b commit 1458061
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions platform/darwin/src/MGLObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ NS_ASSUME_NONNULL_BEGIN
#pragma mark -

/**
Base class for observers used to receive notifications from an `MGLObservable`.
Base class for observers used to receive notifications from a type conforming to
the `MGLObservable` protocol.
Subclasses should only override `-[MGLObserver notifyWithEvent:]`.
*/
MGL_EXPORT
Expand All @@ -26,8 +27,9 @@ MGL_EXPORT
#pragma mark -

/**
Protocol that types that wish to support subscriptions for events should conform
to.
The `MGLObservable` protocol declares methods that conforming classes should
implement should they want to observe low-level events of type `MGLEvent`.
Currently only `MGLMapView` implements `MGLObservable`.
*/
MGL_EXPORT
@protocol MGLObservable
Expand Down

0 comments on commit 1458061

Please sign in to comment.