Difference between revisions of "ISPHONEGAP()"

From Lianjapedia
Jump to: navigation, search
 
Line 10: Line 10:
 
==Description==
 
==Description==
 
The ISPHONEGAP() function returns .T. (True) if the current client is a mobile device, otherwise .F. (False).
 
The ISPHONEGAP() function returns .T. (True) if the current client is a mobile device, otherwise .F. (False).
 +
 +
Note: PhoneGap Build of Lianja Apps was deprecated in Lianja v5.4.  Instead, the Build Workspace provides the ability to configure Apps as [[#Progressive Web Apps|Progressive Web Apps (PWA)]].
  
 
==Example==
 
==Example==
Line 23: Line 25:
 
[[Category:Lianja VFP Extensions]]
 
[[Category:Lianja VFP Extensions]]
 
[[Category:VFP Function Extensions]]
 
[[Category:VFP Function Extensions]]
[[Category:Mobile Apps]]
 
 
[[Category:Lianja v2.0]]
 
[[Category:Lianja v2.0]]
 
[[Category:PhoneGap Apps]]
 
[[Category:PhoneGap Apps]]

Latest revision as of 10:34, 9 December 2020

Purpose

Function which can be used in .rsp pages and/or server-side procedures to determine if the current client is a mobile device

Syntax

ISPHONEGAP()

See Also

ISSERVER(), PHONEGAPDEVICE(), PHONEGAPPLATFORM(), PHONEGAPVERSION()

Description

The ISPHONEGAP() function returns .T. (True) if the current client is a mobile device, otherwise .F. (False).

Note: PhoneGap Build of Lianja Apps was deprecated in Lianja v5.4. Instead, the Build Workspace provides the ability to configure Apps as Progressive Web Apps (PWA).

Example

if isPhoneGap()
   // called from mobile device client
endif