{
  "pp-navigateTo": {
    "prefix": "pp-navigateTo",
    "body": [
      "pp.navigateTo({",
      "\turl: '$1'",
      "});\n"
    ],
    "description": "Navigate to screen"
  },
  "pp-navigateBack": {
    "prefix": "pp-navigateBack",
    "body": [
      "pp.navigateBack();\n"
    ],
    "description": "Navigate Back"
  },
  "pp-popAll": {
    "prefix": "pp-popAll",
    "body": [
      "pp.popAll();\n"
    ],
    "description": "Pop All"
  },
  "pp-switchTab": {
    "prefix": "pp-switchTab",
    "body": [
      "pp.switchTab({",
      "\turl: '$1'",
      "});\n"
    ],
    "description": "Switch Tab"
  },
  "pp-redirectTo": {
    "prefix": "pp-redirectTo",
    "body": [
      "pp.redirectTo({",
      "\turl: '$1'",
      "});\n"
    ],
    "description": "Redirect to a new page replacing current view stack"
  },
  "pp-navigateToRemote": {
    "prefix": "pp-navigateToRemote",
    "body": [
      "pp.navigateToRemote({",
      "\turl: '$1',",
      "\tincludeAccessToken: false,",
      "\tsuccess() {$2},",
      "\tfail() {$3},",
      "\tcomplete() {$4},",
      "});\n"
    ],
    "description": "Navigate to remotely hosted page"
  },
  "pp-present": {
    "prefix": "pp-present",
    "body": [
      "pp.present({",
      "\turl: '$1'",
      "});\n"
    ],
    "description": "Present the new page without pushing to view stack"
  },
  "pp.setSessionData":{
    "prefix": "pp-setSessionData",
    "body": [
     "pp.setSessionData({",
     "\tkey: '$1',",
     "\tvalue: '$2'",
     "});\n"
    ],
    "description": "Set session data"
  },
  "pp.getSessionData":{
    "prefix": "pp-getSessionData",
    "body": [
     "pp.getSessionData({",
     "\tkey: '$1',",
     "\tsuccess() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get session data"
  },
  "pp.setStorageData":{
    "prefix": "pp-setStorageData",
    "body": [
     "pp.setStorageData({",
     "\tkey: '$1',",
     "\tvalue: '$2'",
     "});\n"
    ],
    "description": "Set storage data"
  },
  "pp.getStorageData":{
    "prefix": "pp-getStorageData",
    "body": [
     "pp.getStorageData({",
     "\tkey: '$1',",
     "\tsuccess() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get storage data"
  },
  "pp.removeStorageData":{
    "prefix": "pp-removeStorageData",
    "body": [
     "pp.removeStorageData({",
     "\tkey: '$1',",
     "});\n"
    ],
    "description": "Remove storage data"
  },
  "pp.registerAppLaunchOptions":{
    "prefix": "pp-registerAppLaunchOptions",
    "body": [
     "pp.registerAppLaunchOptions({",
     "\ttext: '$1',",
     "\toptions: {$2},",
     "\tsuccess() {$3},",
     "\tfail() {$4},",
     "\tcomplete() {$5},",
     "});\n"
    ],
    "description": "Register app launch options"
  },
  "pp.getAppLaunchOptions":{
    "prefix": "pp-getAppLaunchOptions",
    "body": [
     "pp.getAppLaunchOptions({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get app launch options"
  },
  "pp.paypayWillEnterForeground":{
    "prefix": "pp-paypayWillEnterForeground",
    "body": [
     "pp.paypayWillEnterForeground({",
     "\tcomplete() {$1},",
     "});\n"
    ],
    "description": "Foreground enter lifecycle"
  },
  "pp.paypayWillEnterBackground":{
    "prefix": "pp-paypayWillEnterBackground",
    "body": [
     "pp.paypayWillEnterBackground({",
     "\tcomplete() {$1},",
     "});\n"
    ],
    "description": "Background enter lifecycle"
  },
  "pp.pageWillAppear":{
    "prefix": "pp-pageWillAppear",
    "body": [
     "pp.pageWillAppear({",
     "\tsuccess() {$1},",
     "});\n"
    ],
    "description": "Page will appear lifecycle"
  },
  "pp.pageWillDisappear":{
    "prefix": "pp-pageWillDisappear",
    "body": [
     "pp.pageWillDisappear({",
     "\tsuccess() {$1},",
     "});\n"
    ],
    "description": "Page will disappear lifecycle"
  },
  "pp.getPlatformInformation":{
    "prefix": "pp-getPlatformInformation",
    "body": [
     "pp.getPlatformInformation({",
     "\tsuccess() {$1},",
     "});\n"
    ],
    "description": "Get Platform information"
  },
  "pp.getDeviceInformation":{
    "prefix": "pp-getDeviceInformation",
    "body": [
     "pp.getDeviceInformation({",
     "\tsuccess() {$1},",
     "});\n"
    ],
    "description": "Get Device information"
  },
  "pp.getPushToken":{
    "prefix": "pp-getPushToken",
    "body": [
     "pp.getPushToken({",
     "\tsuccess() {$1},",
     "});\n"
    ],
    "description": "Get Push Token"
  },
  "pp.getUAID":{
    "prefix": "pp-getUAID",
    "body": [
     "pp.getUAID({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get UUID"
  },
  "pp.getBalance":{
    "prefix": "pp-getBalance",
    "body": [
     "pp.getBalance({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get balance"
  },
  "pp.getUserProfile":{
    "prefix": "pp-getUserProfile",
    "body": [
     "pp.getUserProfile({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get user profile"
  },
  "pp.makePayment":{
    "prefix": "pp-makePayment",
    "body": [
     "pp.makePayment({",
     "\tmerchantPaymentId: '$1',",
     "\tamount: {$2},",
     "\torderDescription: '$3',",
     "\torderItems: [{$4}],",
     "\tsuccess() {$5},",
     "\tfail() {$6},",
     "\tcomplete() {$7},",
     "});\n"
    ],
    "description": "Make payment"
  },

  "pp.request":{
    "prefix": "pp-request",
    "body": [
     "pp.request({",
     "\turl: '$1',",
     "\tdata: {$2},",
     "\theader: {",
     "\t\t'content-type': 'application/json'",
     "\t},",
     "\tsuccess() {$3},",
     "\tfail() {$4},",
     "\tcomplete() {$5},",
     "});\n"
    ],
    "description": "Make request"
  },
  "pp.requestInternal":{
    "prefix": "pp-requestInternal",
    "body": [
     "pp.requestInternal({",
     "\tsuccess() {$3},",
     "\tfail() {$4},",
     "\tcomplete() {$5},",
     "});\n"
    ],
    "description": "Make internal request"
  },
  "pp.requestPermission":{
    "prefix": "pp-requestPermission",
    "body": [
     "pp.requestPermission({",
     "\tpermissions: [$1],",
     "\tsuccess() {$2},",
     "\tfail() {$3},",
     "\tcomplete() {$4},",
     "});\n"
    ],
    "description": "Request Permission"
  },
  "pp.getPermissionStatus":{
    "prefix": "pp-getPermissionStatus",
    "body": [
     "pp.getPermissionStatus({",
     "\tname: '$1',",
     "\tsuccess() {$2},",
     "\tfail() {$3},",
     "\tcomplete() {$4},",
     "});\n"
    ],
    "description": "Get Permission status"
  },
  "pp.getUserLocation":{
    "prefix": "pp-getUserLocation",
    "body": [
     "pp.getUserLocation({",
     "\tcomplete() {$1},",
     "});\n"
    ],
    "description": "Get user location"
  },
  "pp.scanCode":{
    "prefix": "pp-scanCode",
    "body": [
     "pp.scanCode({",
     "\tsuccess() {$1},",
     "\tcomplete() {$2},",
     "});\n"
    ],
    "description": "Scan code"
  },
  "pp.takePhoto":{
    "prefix": "pp-takePhoto",
    "body": [
     "pp.takePhoto({",
     "\tsourceType: [$1],",
     "\tsuccess() {$2},",
     "\tfail() {$3},",
     "\tcomplete() {$4},",
     "});\n"
    ],
    "description": "Take Photo"
  },
  "pp.showAlert":{
    "prefix": "pp-showAlert",
    "body": [
     "pp.showAlert({",
     "\ttitle: '$1',",
     "\ttext: '$2',",
     "\tbuttonTitle: '$3',",
     "\tcomplete() {$4},",
     "});\n"
    ],
    "description": "show alert box"
  },
  "pp.showErrorSheet":{
    "prefix": "pp-showErrorSheet",
    "body": [
     "pp.showErrorSheet({",
     "\ttitle: '$1',",
     "\ttext: '$2',",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "show error box"
  },
  "pp.setTitle":{
    "prefix": "pp-setTitle",
    "body": [
     "pp.setTitle({",
     "\tcomplete() {$1},",
     "});\n"
    ],
    "description": "Set Title of navigation bar"
  },
  "pp.detectShakeMotion":{
    "prefix": "pp-detectShakeMotion",
    "body": [
     "pp.detectShakeMotion({",
     "\tcomplete() {$1},",
     "});\n"
    ],
    "description": "Shake screen"
  },
  "pp.getTopBarHeight":{
    "prefix": "pp-getTopBarHeight",
    "body": [
     "pp.getTopBarHeight({",
     "\tsuccess() {$1},",
     "\tcomplete() {$2},",
     "});\n"
    ],
    "description": "Get navigation bar height"
  },
  "pp.setNavigationBarBackgroundColor":{
    "prefix": "pp-setNavigationBarBackgroundColor",
    "body": [
     "pp.setNavigationBarBackgroundColor({",
     "\tcolor: '$1',",
     "\tcomplete() {$2},",
     "});\n"
    ],
    "description": "Set NavigationBar BackgroundColor"
  },
  "pp.setNavigationBarTextStyle":{
    "prefix": "pp-setNavigationBarTextStyle",
    "body": [
     "pp.setNavigationBarTextStyle({",
     "\tstyle: '$1',",
     "\tcomplete() {$2},",
     "});\n"
    ],
    "description": "Set NavigationBar textstyle"
  },
  "pp.setBackgroundColor":{
    "prefix": "pp-setBackgroundColor",
    "body": [
     "pp.setBackgroundColor({",
     "\tcolor: '$1',",
     "\tcomplete() {$2},",
     "});\n"
    ],
    "description": "Set BackgroundColor of navigation bar"
  },
  "pp.setEnablePullDownRefresh":{
    "prefix": "pp-setEnablePullDownRefresh",
    "body": [
     "pp.setEnablePullDownRefresh({",
     "\tenabled: '$1',",
     "\tcomplete() {$2},",
     "});\n"
    ],
    "description": "Set enable pullDownRefresh "
  },
  "pp.setNavigationStyle":{
    "prefix": "pp-setNavigationStyle",
    "body": [
     "pp.setNavigationStyle({",
     "\tstyle: '$1',",
     "});\n"
    ],
    "description": "Set navigation style "
  },
  "pp.getCompassInfo":{
    "prefix": "pp-getCompassInfo",
    "body": [
     "pp.getCompassInfo({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Get compass information "
  },
  "pp.getIpAddress":{
    "prefix": "pp-getIpAddress",
    "body": [
     "pp.getIpAddress({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "});\n"
    ],
    "description": "Get IP address "
  },
  "pp.setScreenBrightness":{
    "prefix": "pp-setScreenBrightness",
    "body": [
     "pp.setScreenBrightness({",
     "\tvalue: $1,",
     "});\n"
    ],
    "description": "Set Screen brightness"
  },
  "pp.checkBiometricAuthenticationAvailability":{
    "prefix": "pp-checkBiometricAuthenticationAvailability",
    "body": [
     "pp.checkBiometricAuthenticationAvailability({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "});\n"
    ],
    "description": "Check biometric authentication availability"
  },
  "pp.startBiometricAuthentication":{
    "prefix": "pp-startBiometricAuthentication",
    "body": [
     "pp.startBiometricAuthentication({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "});\n"
    ],
    "description": "Start biometric authentication"
  },
  "pp.getKycInformation":{
    "prefix": "pp-getKycInformation",
    "body": [
     "pp.getKycInformation({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "});\n"
    ],
    "description": "Get KYC Information"
  },
  "pp.setTabBarVisibility":{
    "prefix": "pp-setTabBarVisibility",
    "body": [
     "pp.setTabBarVisibility({",
     "\tvisible: $1",
     "});\n"
    ],
    "description": "Set TabBar visibility"
  },
  "pp.loadNotificationStatus":{
    "prefix": "pp-loadNotificationStatus",
    "body": [
     "pp.loadNotificationStatus({",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "\tcomplete() {$3},",
     "});\n"
    ],
    "description": "Load Notification Status"
  },
  "pp.removeSavedFile":{
    "prefix": "pp-removeSavedFile",
    "body": [
     "pp.removeSavedFile({",
     "\tfilePath: $1",
     "\tsuccess() {$1},",
     "\tfail() {$2},",
     "});\n"
    ],
    "description": "Remove downloded file"
  },
  "pp.getSavedFileList":{
    "prefix": "pp-getSavedFileList",
    "body": [
     "pp.getSavedFileList({",
     "\tsuccess() {$1},",
     "});\n"
    ],
    "description": "Get downlodeded file list"
  },
  "pp.downloadFile":{
    "prefix": "pp-downloadFile",
    "body": [
     "pp.downloadFile({",
     "\turl() {$1},",
     "\tfilePath() {$2},",
     "\tsuccess() {$3},",
     "\tfail() {$4},",
     "});\n"
    ],
    "description": "Download file"
  }
}
