flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
595 stars 40 forks source link

Application state notifications #273

Closed mouselangelo closed 5 years ago

mouselangelo commented 5 years ago

Implements #271

Type of change: Feature

Motivation (current vs expected behavior)

iOS provides application state change notifications via NotificationCenter, which can be useful. Also, including the NotificationCenter and related types, it becomes possible for developers to add and post their own custom notifications in their apps.

Please check if the PR fulfills these requirements

mouselangelo commented 5 years ago

@ephemer - Please check this once again. The class approach is definitely more extensible in case something needs to be "overridden" in the future, even if that doesn't seem likely sometimes.

ephemer commented 5 years ago

@mouselangelo I agree. LGTM merging