通过html页面中的按钮将Phonegap应用程序全屏显示 [英] Phonegap Application fullscreen through a button in html page

查看:88
本文介绍了通过html页面中的按钮将Phonegap应用程序全屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个phonegap应用程序,它可以作为普通应用程序启动(不是在全屏模式下).我需要提供一个用户选项以在我的HTML中启用全屏显示.如何通过javascript或Phonegap实用程序使按钮单击全屏显示我的应用程序?

I have a phonegap application which starts as a normal application (not in full screen mode). I need to provide a user option to enable fullscreen in my html. How can I make my application to be in full screen on button click through javascript or Phonegap utils?

推荐答案

您必须编写一个PhoneGap )().

You have to write a PhoneGap plugin that calls the native functionality to switch to full screen (e.g. like this for iOS).

这篇关于通过html页面中的按钮将Phonegap应用程序全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆