/* tslint:disable:no-unused-variable */
// >> gestures-require
import gestures = require("ui/gestures");
// << gestures-require
import labelModule = require("ui/label");

export var test_DummyTestForSnippetOnly0 = function () {
    // >> gestures-double-tap
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.doubleTap, function (args: gestures.GestureEventData) { 
        console.log("Double Tap");
    });
    // << gestures-double-tap
}

export var test_DummyTestForSnippetOnly01 = function () {
    // >> gestures-double-tap-alt
    var label = new labelModule.Label();
    var observer = label.on("doubleTap", function (args: gestures.GestureEventData) {
        console.log("Double Tap");
    });
    // << gestures-double-tap-alt
}

export var test_DummyTestForSnippetOnly1 = function () {
    // >> gestures-long-press
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.longPress, function (args: gestures.GestureEventData) {
        console.log("Long Press");
    });
    // << gestures-long-press
}

export var test_DummyTestForSnippetOnly11 = function () {
    // >> gestures-long-press-alt
    var label = new labelModule.Label();
    var observer = label.on("longPress", function (args: gestures.GestureEventData) {
        console.log("Long Press");
    });
    // << gestures-long-press-alt
}

export var test_DummyTestForSnippetOnly2 = function () {
    // >> gestures-pan
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.pan, function (args: gestures.PanGestureEventData) {
        console.log("Pan deltaX:" + args.deltaX + "; deltaY:" + args.deltaY + ";");
    });
    // << gestures-pan
}

export var test_DummyTestForSnippetOnly22 = function () {
    // >> gestures-pan-alt
    var label = new labelModule.Label();
    var observer = label.on("pan", function (args: gestures.PanGestureEventData) {
        console.log("Pan deltaX:" + args.deltaX + "; deltaY:" + args.deltaY + ";");
    });
    // << gestures-pan-alt
}

export var test_DummyTestForSnippetOnly3 = function () {
    // >> gestures-pan-pinch
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.pinch, function (args: gestures.PinchGestureEventData) {
        console.log("Pinch scale: " + args.scale);
    });
    // << gestures-pan-pinch
}

export var test_DummyTestForSnippetOnly33 = function () {
    // >> gestures-pan-pinch-alt
    var label = new labelModule.Label();
    var observer = label.on("pinch", function (args: gestures.PinchGestureEventData) {
        console.log("Pinch scale: " + args.scale);
    });
    // << gestures-pan-pinch-alt
}

export var test_DummyTestForSnippetOnly4 = function () {
    // >> gestures-rotation
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.rotation, function (args: gestures.RotationGestureEventData) {
        console.log("Rotation: " + args.rotation);
    });
    // << gestures-rotation
}

export var test_DummyTestForSnippetOnly44 = function () {
    // >> gestures-rotation-alt
    var label = new labelModule.Label();
    var observer = label.on("rotation", function (args: gestures.RotationGestureEventData) {
        console.log("Rotation: " + args.rotation);
    });
    // << gestures-rotation-alt
}

export var test_DummyTestForSnippetOnly5 = function () {
    // >> gestures-swipe
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.swipe, function (args: gestures.SwipeGestureEventData) {
        console.log("Swipe direction: " + args.direction);
    });
    // << gestures-swipe
}

export var test_DummyTestForSnippetOnly55 = function () {
    // >> gestures-swipe-alt
    var label = new labelModule.Label();
    var observer = label.on("swipe", function (args: gestures.SwipeGestureEventData) {
        console.log("Swipe direction: " + args.direction);
    });
    // << gestures-swipe-alt
}

export var test_DummyTestForSnippetOnly6 = function () {
    // >> gestures-tap
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.tap, function (args: gestures.GestureEventData) {
        console.log("Tap");
    });
    // << gestures-tap
}

export var test_DummyTestForSnippetOnly66 = function () {
    // >> gestures-tap-alt
    var label = new labelModule.Label();
    var observer = label.on("tap", function (args: gestures.GestureEventData) {
        console.log("Tap");
    });
    // << gestures-tap-alt
}

export var test_DummyTestForSnippetOnly7 = function () {
    // >> gestures-stop-observe
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.tap, function (args: gestures.GestureEventData) {
        console.log("Tap");
    });
    observer.disconnect();
    // << gestures-stop-observe
}

export var test_DummyTestForSnippetOnly8 = function () {
    // >> gestures-multiple
    var label = new labelModule.Label();
    var observer = label.on(gestures.GestureTypes.tap | gestures.GestureTypes.doubleTap | gestures.GestureTypes.longPress, function (args: gestures.GestureEventData) {
        console.log("Event: " + args.eventName);
    });
    // << gestures-multiple
}

export var test_DummyTestForSnippetOnly88 = function () {
    // >> gestures-string
    var label = new labelModule.Label();
    var observer = label.on("tap, doubleTap, longPress", function (args: gestures.GestureEventData) {
        console.log("Event: " + args.eventName);
    });
    // << gestures-string
}

export var test_DummyTestForSnippetOnly9 = function () {
    // >> gestures-events-string
    var label = new labelModule.Label();
    var observer = label.on("loaded, tap, longPress", function (args: gestures.GestureEventData) {
        console.log("Event: " + args.eventName);
    });
    // << gestures-events-string
}