Silk Mobile

Table of Contents (Homepage)

Flick

void flick(Direction, Offset)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

Description

Flick the screen in a given direction.

Parameters

  • Direction: Direction of the Flicking motion

  • Offset: flick offset (in pixels).

Usage

In order to flick the screen you can add the command 'flick', provide the direction and offset.

As a visible aid, an arrow will be drawn on the reflection showing the flick motion.

It will start according the swipe value and will point the opposite of the swipe direction.

For example, for the Right direction, the swipe arrow will point to the Left.

images/download/attachments/3309708/Flick%20Right.png

Scenario: In the following example, we will flick to the screen to the right in order to get to an application.

Parameters:

  • Direction: Direction to flick – will be set to RIGHT

  • Offset: Flick offset – will be set to 100

images/download/attachments/3309708/4.jpg

Code Examples

Java Example
client.flick("Right", 100);
C# Example
client.Flick("Right", 100);
VBScript Example
client.Flick "Right", 100
Python Example
self.client.flick("Right", 100)
Perl Example
$client->flick("Right", 100);