From Clomosy Docs

(Created page with "<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> function Clomosy.PlatformIsMobile: Boolean; </div> It provides information indicating that the application is running on a mobile platform. If the platform on which the application is opened is mobile, it returns True; otherwise, it returns False.<br> <b>Example</b><br> <b>TRObject Syntax</b><br> <pre> var isMobile : Boolean; { isMobile = Clomosy.PlatformIsMob...")
 
No edit summary
Line 32: Line 32:


<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#System_Functions | System Functions]]
* [[Clomosy_Class#System_Function | System Functions]]

Revision as of 14:15, 14 October 2024

It provides information indicating that the application is running on a mobile platform. If the platform on which the application is opened is mobile, it returns True; otherwise, it returns False.

Example
TRObject Syntax

var
  isMobile : Boolean;
{
  isMobile = Clomosy.PlatformIsMobile;
  if isMobile
    ShowMessage('The application is opened on a mobile platform.');
  else
    ShowMessage('The application is opened on a Windows platform.');
}

Base Syntax

var
  isMobile : Boolean;
begin
  isMobile := Clomosy.PlatformIsMobile;
  if isMobile then
    ShowMessage('The application is opened on a mobile platform.');
  else
    ShowMessage('The application is opened on a Windows platform.');
end;

See Also