{
  "api": {
    "name": "HealthFitnessPlugin",
    "slug": "healthfitnessplugin",
    "docs": "",
    "tags": [],
    "methods": [
      {
        "name": "requestHealthPermissions",
        "signature": "(options: RequestHealthPermissionsOptions) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "RequestHealthPermissionsOptions"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Requests the given HealthKit / Health Connect permissions.",
        "complexTypes": [
          "RequestHealthPermissionsOptions"
        ],
        "slug": "requesthealthpermissions"
      },
      {
        "name": "getData",
        "signature": "(options: AdvancedQueryOptions) => Promise<AdvancedQueryResult>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "AdvancedQueryOptions"
          }
        ],
        "returns": "Promise<AdvancedQueryResult>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Performs an advanced query for a health/fitness variable over a date range.",
        "complexTypes": [
          "AdvancedQueryResult",
          "AdvancedQueryOptions"
        ],
        "slug": "getdata"
      },
      {
        "name": "getWorkoutData",
        "signature": "(options: WorkoutAdvancedQueryOptions) => Promise<WorkoutAdvancedQueryResult>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "WorkoutAdvancedQueryOptions"
          }
        ],
        "returns": "Promise<WorkoutAdvancedQueryResult>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Performs an advanced query for workout data over a date range.\n\niOS only - the underlying native Android library has no workout-specific\nquery. Not implemented on Android, so calling it there rejects with\nCapacitor's standard `UNIMPLEMENTED` error.",
        "complexTypes": [
          "WorkoutAdvancedQueryResult",
          "WorkoutAdvancedQueryOptions"
        ],
        "slug": "getworkoutdata"
      },
      {
        "name": "writeData",
        "signature": "(options: WriteDataOptions) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "WriteDataOptions"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Writes a value to a health/fitness variable.",
        "complexTypes": [
          "WriteDataOptions"
        ],
        "slug": "writedata"
      },
      {
        "name": "getLastRecord",
        "signature": "(options: GetLastRecordOptions) => Promise<AdvancedQueryResult>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "GetLastRecordOptions"
          }
        ],
        "returns": "Promise<AdvancedQueryResult>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Retrieves the last recorded value for a variable.",
        "complexTypes": [
          "AdvancedQueryResult",
          "GetLastRecordOptions"
        ],
        "slug": "getlastrecord"
      },
      {
        "name": "setBackgroundJob",
        "signature": "(options: SetBackgroundJobOptions) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "SetBackgroundJobOptions"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Creates a background job that monitors a variable and notifies on a condition.",
        "complexTypes": [
          "SetBackgroundJobOptions"
        ],
        "slug": "setbackgroundjob"
      },
      {
        "name": "deleteBackgroundJob",
        "signature": "(options: DeleteBackgroundJobOptions) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "DeleteBackgroundJobOptions"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Deletes a background job by id.",
        "complexTypes": [
          "DeleteBackgroundJobOptions"
        ],
        "slug": "deletebackgroundjob"
      },
      {
        "name": "listBackgroundJobs",
        "signature": "() => Promise<ListBackgroundJobsResult>",
        "parameters": [],
        "returns": "Promise<ListBackgroundJobsResult>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Lists all existing background jobs.",
        "complexTypes": [
          "ListBackgroundJobsResult"
        ],
        "slug": "listbackgroundjobs"
      },
      {
        "name": "updateBackgroundJob",
        "signature": "(options: UpdateBackgroundJobOptions) => Promise<void>",
        "parameters": [
          {
            "name": "options",
            "docs": "",
            "type": "UpdateBackgroundJobOptions"
          }
        ],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Updates an existing background job's parameters.",
        "complexTypes": [
          "UpdateBackgroundJobOptions"
        ],
        "slug": "updatebackgroundjob"
      },
      {
        "name": "disconnectFromHealthConnect",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Revokes all Health Connect permissions previously granted to the app.\n\nAndroid only - HealthKit has no equivalent API for an app to revoke its own access.",
        "complexTypes": [],
        "slug": "disconnectfromhealthconnect"
      },
      {
        "name": "openHealthConnect",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "name": "since",
            "text": "1.0.0"
          }
        ],
        "docs": "Opens the Health Connect app. Rejects if Health Connect is not installed.\n\nAndroid only - HealthKit has no equivalent standalone app to open.",
        "complexTypes": [],
        "slug": "openhealthconnect"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "RequestHealthPermissionsOptions",
      "slug": "requesthealthpermissionsoptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "customPermissions",
          "tags": [],
          "docs": "JSON-encoded string: an array of individual variable permission\ndescriptors, e.g. `[{\"Variable\":\"STEPS\",\"AccessType\":\"READ\"}]`. Use this\nto request permission for specific variables not covered by (or instead\nof) the broader groups below. `AccessType` is `READ`, `WRITE`, or\n`READWRITE`.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "allVariables",
          "tags": [],
          "docs": "JSON-encoded string: `{\"IsActive\": boolean, \"AccessType\": \"READ\" | \"WRITE\" | \"READWRITE\"}`.\nWhen `IsActive` is `true`, requests the given access to every\nhealth/fitness variable the plugin supports.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "fitnessVariables",
          "tags": [],
          "docs": "JSON-encoded string: `{\"IsActive\": boolean, \"AccessType\": \"READ\" | \"WRITE\" | \"READWRITE\"}`.\nCovers the \"fitness\" variable group: `STEPS`, `CALORIES_BURNED`,\n`DISTANCE`, `WALKING_SPEED`.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "healthVariables",
          "tags": [],
          "docs": "JSON-encoded string: `{\"IsActive\": boolean, \"AccessType\": \"READ\" | \"WRITE\" | \"READWRITE\"}`.\nCovers the \"health\" variable group: `HEART_RATE`, `SLEEP`,\n`BLOOD_PRESSURE`, `BLOOD_GLUCOSE`, `OXYGEN_SATURATION`,\n`BODY_TEMPERATURE` (iOS also includes dietary water and dietary energy\nconsumed, which have no Android equivalent).",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "profileVariables",
          "tags": [],
          "docs": "JSON-encoded string: `{\"IsActive\": boolean, \"AccessType\": \"READ\" | \"WRITE\" | \"READWRITE\"}`.\nCovers the \"profile\" variable group: `WEIGHT`, `HEIGHT`,\n`BODY_FAT_PERCENTAGE`, `BASAL_METABOLIC_RATE`.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "workoutVariables",
          "tags": [],
          "docs": "JSON-encoded string: `{\"IsActive\": boolean, \"AccessType\": \"READ\" | \"WRITE\" | \"READWRITE\"}`.\nRequests permission for HealthKit's workout type, needed for `getWorkoutData()`.\n\niOS only - not supported on Android (`getWorkoutData()` is iOS only;\nthis field is never read there).",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "AdvancedQueryResult",
      "slug": "advancedqueryresult",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "results",
          "tags": [],
          "docs": "JSON-encoded string containing the raw result blocks.",
          "complexTypes": [],
          "type": "string | undefined"
        },
        {
          "name": "resultDataPoints",
          "tags": [],
          "docs": "JSON-encoded string containing chart-ready accelerator data points.",
          "complexTypes": [],
          "type": "string | undefined"
        },
        {
          "name": "warning",
          "tags": [],
          "docs": "Present only on Android, and only when `getData()`'s `TimeUnit` parameter\nis `MILLISECONDS` or `SECONDS` - both are deprecated on Health Connect,\nso the query silently runs with `TimeUnit: 'MINUTE'` instead. `code` is\n`OS-PLUG-HLFT-0405`.",
          "complexTypes": [],
          "type": "{ code: string; message: string; } | undefined"
        }
      ]
    },
    {
      "name": "AdvancedQueryOptions",
      "slug": "advancedqueryoptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "parameters",
          "tags": [],
          "docs": "JSON-encoded string containing the full query parameters object\n(variable, startDate, endDate, timeUnit, operationType, timeUnitLength,\nadvancedQueryReturnType, advancedQueryResultType) - a single serialized\nblob, not individual fields.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "WorkoutAdvancedQueryResult",
      "slug": "workoutadvancedqueryresult",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "results",
          "tags": [],
          "docs": "JSON-encoded string containing the raw result blocks.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "WorkoutAdvancedQueryOptions",
      "slug": "workoutadvancedqueryoptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "parameters",
          "tags": [],
          "docs": "JSON-encoded string containing the full workout query parameters object\n(workoutTypeVariables, startDate, endDate) - a single serialized blob.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "WriteDataOptions",
      "slug": "writedataoptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "variable",
          "tags": [],
          "docs": "The health/fitness variable to write to.\n\nAndroid only accepts \"profile\" variables - `WEIGHT`, `HEIGHT`,\n`BODY_FAT_PERCENTAGE`, `BASAL_METABOLIC_RATE` - any other variable\nrejects with a \"not a profile variable\" error. iOS accepts most\nvariables (anything HealthKit represents as a quantity, which includes\nthe profile variables plus most fitness/health ones), except\ncategory-based ones like `SLEEP`.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "value",
          "tags": [],
          "docs": "The value to write, in the variable's native unit (e.g. kg for `WEIGHT`).",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "GetLastRecordOptions",
      "slug": "getlastrecordoptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "variable",
          "tags": [],
          "docs": "The health/fitness variable to read, e.g. `STEPS`.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "SetBackgroundJobOptions",
      "slug": "setbackgroundjoboptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "parameters",
          "tags": [],
          "docs": "JSON-encoded string containing the full background job parameters object\n(variable, timeUnit, timeUnitGrouping, notificationFrequency,\nnotificationFrequencyGrouping, jobFrequency, condition, value,\nnotificationHeader, notificationBody) - a single serialized blob.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "DeleteBackgroundJobOptions",
      "slug": "deletebackgroundjoboptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "id",
          "tags": [],
          "docs": "The background job's id, from `listBackgroundJobs()`.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "ListBackgroundJobsResult",
      "slug": "listbackgroundjobsresult",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "jobs",
          "tags": [],
          "docs": "JSON-encoded string containing the list of background jobs.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "UpdateBackgroundJobOptions",
      "slug": "updatebackgroundjoboptions",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "parameters",
          "tags": [],
          "docs": "JSON-encoded string containing the full update parameters object (id,\nnotificationFrequency, notificationFrequencyGrouping, condition, value,\nnotificationHeader, notificationBody, isActive) - a single serialized\nblob. `isActive` is the string `\"true\"`/`\"false\"` here, unlike the\nboolean `IsActive` used in `requestHealthPermissions`'s descriptors -\nmatches the existing Cordova plugin's convention for this method.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    }
  ],
  "enums": [],
  "typeAliases": [],
  "pluginConfigs": []
}