Silk Mobile

Table of Contents (Homepage)

Reboot

Reboot(Timeout)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

Description

Will reboot the device

Parameters

  • Timeout - Timeout waiting for the device to reload. "0" will return immediately

Notes:

Make sure that no system pop-up is displayed after device reboot. Those pop-ups block the ability to launch applications on the device. For example, make sure that no pop-up that asks for Apple ID is presented.

On some devices, an additional action is needed after reboot of unlocking the device. This can be done using Mobile Key Events of {UNLOCK}


Code Examples

Java Example
if(client.reboot(120000)){
// If statement
}
C# Example
if(client.Reboot(120000))
{
// If statement
}
VBScript Example
If StrComp (client.Reboot ( 120000 ), "True") = 0 Then
Report
'If statement
Else
Report
End If
Python Example
if(self.client.reboot(120000)):
# If statement
pass
Perl Example
if($client->reboot(120000)){
# If statement
}