android .notify,GitHub - Karn/notify: Simplified notification construction and delivery for Android.

notify-logo.svg

Notify

Simplified notification construction for Android.

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4b6f746c696e2d312e332e31312d626c75652e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f416e64726f6964582d312e302d3661623334342e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b61726e2f6e6f746966792e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6b61726e2f6e6f746966792e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b61726e2f6e6f746966792f616c6c2e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532464b61726e2532466e6f746966792e7376673f747970653d736d616c6c

Notify is a Fluent API for Android notifications which lets you build notifications without worrying how they'll look across devices or API versions. You can bring deterministic notifications to your Android projects with clarity & ease so you can finally stop fighting Developer documentation and get back to dev work that really matters.

GETTING STARTED

Notify (pre-)releases are available via JitPack. It is recommended that a specific release version is selected when using the library in production as there may be breaking changes at anytime.

Tip: Test out the canary channel to try out features by using the latest develop snapshot; develop-SNAPSHOT.

// Project level build.gradle

// ...

repositories {

maven { url 'https://jitpack.io' }

}

// ...

// Module level build.gradle

dependencies {

// Replace version with release version, e.g. 1.0.0-alpha, -SNAPSHOT

implementation "io.karn:notify:[VERSION]"

}

USAGE

The most basic case is as follows:

Notify

.with(context)

.content { // this: Payload.Content.Default

title = "New dessert menu"

text = "The Cheesecake Factory has a new dessert for you to try!"

}

.show()

default.svg

If you run into a case in which the library does not provide the requisite builder functions you can get the NotificationCompat.Builder object and continue to use it as you would normally by calling NotifyCreator#asBuilder().

Tip: You can view other notification styles on the Notification Types docs page.

Tip: Advanced usage topics are documented here.

CONTRIBUTING

There are many ways to contribute, you can

submit bugs,

help track issues,

review code changes.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值