GetMobileState()
Syntax
State = GetMobileState(#Mobile)Description
Returns the state of the specified mobile object. The mobile object needs to be displayed before being able to called this function.
Parameters
#Mobile The mobile object to use.
Return value
Returns the state of the specified mobile object.
Example
If ContainerMobile(#PB_Any, #PB_Mobile_Page, "padding:16px")
SwitchMobile(0)
Debug "Enabling the switch..."
SetMobileState(0, #True)
CloseMobileContainer()
EndIf
Procedure MobileEvents()
Select EventMobile()
Case 0
Debug "Switch state: " + GetMobileState(0)
EndSelect
EndProcedure
BindEvent(#PB_Event_Mobile, @MobileEvents())
See Also
SetMobileState()
Supported OS
All