Difference between revisions of "PHONEGAPPLATFORM()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[ISPHONEGAP()]], [[ISSERVER()]], [[PHONEGAPDEVICE]], [[PHONEGAPVERSION()]] | + | [[ISPHONEGAP()]], [[ISSERVER()]], [[PHONEGAPDEVICE()]], [[PHONEGAPVERSION()]] |
==Description== | ==Description== |
Revision as of 11:35, 21 October 2015
Contents
Purpose
Function which can be used in .rsp pages and/or server-side procedures to determine the platform if the current client is a mobile device
Syntax
PHONEGAPPLATFORM()
See Also
ISPHONEGAP(), ISSERVER(), PHONEGAPDEVICE(), PHONEGAPVERSION()
Description
The PHONEGAPPLATFORM() function returns the platform - 'android', 'ios' or 'winphone' - if the current client is a mobile device, otherwise an empty string.
Example
do case case phoneGapPlatform() = 'android' // called from Android mobile client case phoneGapPlatform() = 'ios' // called from iOS mobile client case phoneGapPlatform() = 'winphone' // called from Windows Phone mobile client otherwise // not called from mobile client endcase