守望者--AIR技术交流
标题:
Adobe Notification通知 ANE(Android + IOS)
[打印本页]
作者:
破晓
时间:
2015-1-24 20:31
标题:
Adobe Notification通知 ANE(Android + IOS)
本帖最后由 破晓 于 2015-6-3 14:04 编辑
Adobe Notification通知 ANE(Android + IOS)
暂不支持 64位
[attach]648[/attach]
本资源来自: ANE开源群 307700284
作者:
破晓
时间:
2015-6-3 13:59
发个支持 64位的
1在AS3中创建Notification对象,并被NotificationManager类派发。
您可以用以下代码开始派发notification:
private var notificationManager:NotificationManager
protected function notifyUser():void
{
if ( !this.notificationManager )
{
try {
this.notificationManager = new NotificationManager();
}
catch (ae:ArgumentError)
{
trace("The notification native extension has no support for this platform.");
return;
}
}
var n:Notification = new Notification();
n.tickerText = this.tickerText.text;
n.title = this.notificationTitle.text;
n.body = this.notificationBody.text;
this.notificationManager.notifyUser("MY_NOTIFICATION_TYPE",n);
}
复制代码
[attach]1169[/attach]
本资源来自QQ群:56892018
贡献者:万马奔腾(QQ:59421724);
作者:
zhuhang426
时间:
2015-7-29 14:47
沙发的ANE试了下,通知图标显示并非应用的图标,而且关键是,下来通知条,然后点击通知内容不能跳转到APP程序上。求解决方案
作者:
lxz
时间:
2017-10-24 03:07
感谢分享!~
欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/)