notify:到LocalBroadcastManager的RubyMotion接口

时间:2021-05-20 18:56:08
【文件属性】:
文件名称:notify:到LocalBroadcastManager的RubyMotion接口
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-20 18:56:08
Ruby 通知 使用LocalBroadcastManager的更轻松的界面 安装 将此行添加到您的应用程序的Gemfile中: gem 'notify', :git => 'git://github.com/ulrik/notify.git' 然后执行: $ bundle 用法 初始化上下文 class MyApp < Android :: App :: Application def onCreate super Notify . application_context = self end end 在活动中接收通知 class MainActivity < Android :: App :: Activity include NotifiedActivity notify "event-name" , :receive def receive
【文件预览】:
notify-master
----LICENSE.txt(1KB)
----lib()
--------notify()
--------notify.rb(229B)
----Gemfile(102B)
----notify.gemspec(778B)
----Rakefile(0B)
----README.md(1KB)

网友评论