mono touch中app进入后台和被唤醒时的监听事件
来源:互联网 发布:javascript有编译器吗 编辑:程序博客网 时间:2024/05/01 05:46
有不明白的地方欢迎入群 347636249 探讨
if (moviePlayerCtrl != null) {
//btnPlay.ReloadInputViews();
//btnPlay.SetNeedsDisplay();
string _url = CurrentCourseTag < 0 ? CourseWebUrl: RelationCourse [CurrentCourseTag, 1];
ResetPlayerElement (_url);
}
});
//当前app进入后台
NSNotificationCenter.DefaultCenter.AddObserver (UIApplication.DidEnterBackgroundNotification,(notity)=>{
if (moviePlayerCtrl != null) {
moviePlayerCtrl.Pause ();
if (CCTimer != null) {
CCTimer.Invalidate ();
CCTimer.Dispose ();
CCTimer = null;
}
PlayerCenter.SetLocalPlaybackProEnd (CourseNumber, CT);
}
});
//当前app被唤醒
NSNotificationCenter.DefaultCenter.AddObserver (UIApplication.DidBecomeActiveNotification,(notity)=>{if (moviePlayerCtrl != null) {
//btnPlay.ReloadInputViews();
//btnPlay.SetNeedsDisplay();
string _url = CurrentCourseTag < 0 ? CourseWebUrl: RelationCourse [CurrentCourseTag, 1];
ResetPlayerElement (_url);
}
});
//当前app进入后台
NSNotificationCenter.DefaultCenter.AddObserver (UIApplication.DidEnterBackgroundNotification,(notity)=>{
if (moviePlayerCtrl != null) {
moviePlayerCtrl.Pause ();
if (CCTimer != null) {
CCTimer.Invalidate ();
CCTimer.Dispose ();
CCTimer = null;
}
PlayerCenter.SetLocalPlaybackProEnd (CourseNumber, CT);
}
});
0 0
- mono touch中app进入后台和被唤醒时的监听事件
- mono touch中设置监听和提交监听
- mono touch中自定义事件
- mono touch中viewcontroller载入过程常见的事件顺序
- APP切入后台的事件监听
- mono touch 中图片的StretchableImage属性
- mono touch中UIProgressView的使用
- mono touch中UISwitch控件的使用
- mono touch中UISegmentedControl控件的使用
- mono touch中,UISlider控件的使用
- mono touch后端事件处理
- 监听APP进入后台或切换到前台方案对比
- mono touch 中UITextField和UILabel的一些你必须要知道的属性设置
- 进入后台运行的android APP时的记忆功能
- mono touch 中使用多个视图和控制器
- mono touch中NavigationController构造导航栏和工具栏
- touch事件监听
- Fragment监听touch事件
- C语言和设计模式(桥接模式)
- 如何在android中利用NDK编译引入ffmpeg--- Syntax error: word unexpected (expecting ")")
- 顶戴柘城苛
- C# IEnumerable
- http://stcui.me/category/objective-c/
- mono touch中app进入后台和被唤醒时的监听事件
- C语言和设计模式(抽象工厂模式)
- Drawable资源----StateListDrawable
- 图像压缩基础知识
- Using SLF4J and Logback
- Connections between cities lca 求公共最近祖先
- javascript性能提升——动态加载脚本
- Unity MonoBehaviour
- GO-HOME我要回家JAVA2013版火车票抢票程序