[New Library] Android NotificationChannel extensions #12
Labels
api request
Request for a new API
enhancement
New feature or request
library request
Request for a new library
I've noticed that the
NotificationChannel
class has some rather... interesting naming conventions for getters/setters of boolean properties:As a result, no synthetic Kotlin mutable properties are generated, resulting in having to use the Java getter/setter methods respectively.
Proposed extensions
isBadgesShown
: delegates tosetShowBadge
(setter)/canShowBadge
(getter)isBubblesAllowed
: delegates tosetAllowBubbles
(setter)/canBubble
(getter)isDndBypassable
: delegates tosetBypassDnd
(setter)/canBypassDnd
(getter)isVibrationEnabled
: delegates toenableVibration
(setter)/shouldVibrate
(getter)isLightsEnabled
: delegates toenableLights
(setter)/shouldShowLights
(getter)(API names are currently tentative, the names will change as further experimentation is done)
Additional tasks
ImmutableAfterCreation
)The text was updated successfully, but these errors were encountered: