npm package: @siteapps/capacitor-proglove
Description: ProGlove Implementation for Capacitor Apps
Author: Siteapps
Latest version: 1.0.1

# @capacitor/proglove

ProFlove Implementation for Capacitor Apps

## Install

```bash
npm install @capacitor/proglove
npx cap sync
```

## API

<docgen-index>

* [`startPairing()`](#startpairing)
* [`disconnect()`](#disconnect)
* [`getDeviceDetails()`](#getdevicedetails)
* [`getProfiles()`](#getprofiles)
* [`setProfile(...)`](#setprofile)
* [`blockTrigger()`](#blocktrigger)
* [`unblockTrigger()`](#unblocktrigger)
* [`triggerFeedback(...)`](#triggerfeedback)
* [`takeImage(...)`](#takeimage)
* [`setScreen(...)`](#setscreen)
* [`setNotificationScreen(...)`](#setnotificationscreen)
* [Interfaces](#interfaces)
* [Enums](#enums)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### startPairing()

```typescript
startPairing() => Promise<{ started: boolean; qrCode: string; }>
```

**Returns:** <code>Promise&lt;{ started: boolean; qrCode: string; }&gt;</code>

--------------------


### disconnect()

```typescript
disconnect() => Promise<{ disconnected: boolean; }>
```

**Returns:** <code>Promise&lt;{ disconnected: boolean; }&gt;</code>

--------------------


### getDeviceDetails()

```typescript
getDeviceDetails() => Promise<DeviceDetails>
```

**Returns:** <code>Promise&lt;<a href="#devicedetails">DeviceDetails</a>&gt;</code>

--------------------


### getProfiles()

```typescript
getProfiles() => Promise<Array<string>>
```

**Returns:** <code>Promise&lt;string[]&gt;</code>

--------------------


### setProfile(...)

```typescript
setProfile(options: { profileId: string; }) => Promise<void>
```

| Param         | Type                                |
| ------------- | ----------------------------------- |
| **`options`** | <code>{ profileId: string; }</code> |

--------------------


### blockTrigger()

```typescript
blockTrigger() => Promise<void>
```

--------------------


### unblockTrigger()

```typescript
unblockTrigger() => Promise<void>
```

--------------------


### triggerFeedback(...)

```typescript
triggerFeedback(options: { type: FeedbackType; replace: boolean; }) => Promise<void>
```

| Param         | Type                                                                               |
| ------------- | ---------------------------------------------------------------------------------- |
| **`options`** | <code>{ type: <a href="#feedbacktype">FeedbackType</a>; replace: boolean; }</code> |

--------------------


### takeImage(...)

```typescript
takeImage(options: { quality: number; timeout: number; resolution: ImageResolution; }) => Promise<{ image: string; }>
```

| Param         | Type                                                                                                           |
| ------------- | -------------------------------------------------------------------------------------------------------------- |
| **`options`** | <code>{ quality: number; timeout: number; resolution: <a href="#imageresolution">ImageResolution</a>; }</code> |

**Returns:** <code>Promise&lt;{ image: string; }&gt;</code>

--------------------


### setScreen(...)

```typescript
setScreen(options: { templateId: string; fields: Array<ScreenField>; }) => Promise<void>
```

| Param         | Type                                                        |
| ------------- | ----------------------------------------------------------- |
| **`options`** | <code>{ templateId: string; fields: ScreenField[]; }</code> |

--------------------


### setNotificationScreen(...)

```typescript
setNotificationScreen(options: { templateId: string; fields: Array<ScreenField>; timeout: number; }) => Promise<void>
```

| Param         | Type                                                                         |
| ------------- | ---------------------------------------------------------------------------- |
| **`options`** | <code>{ templateId: string; fields: ScreenField[]; timeout: number; }</code> |

--------------------


### Interfaces


#### DeviceDetails

| Prop                | Type                 |
| ------------------- | -------------------- |
| **`serialNumber`**  | <code>string</code>  |
| **`model`**         | <code>string</code>  |
| **`batteryLevel`**  | <code>number</code>  |
| **`displayDevice`** | <code>boolean</code> |


#### Array

| Prop         | Type                | Description                                                                                            |
| ------------ | ------------------- | ------------------------------------------------------------------------------------------------------ |
| **`length`** | <code>number</code> | Gets or sets the length of the array. This is a number one higher than the highest index in the array. |

| Method             | Signature                                                                                                                     | Description                                                                                                                                                                                                                                 |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **toString**       | () =&gt; string                                                                                                               | Returns a string representation of an array.                                                                                                                                                                                                |
| **toLocaleString** | () =&gt; string                                                                                                               | Returns a string representation of an array. The elements are converted to string using their toLocalString methods.                                                                                                                        |
| **pop**            | () =&gt; T \| undefined                                                                                                       | Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.                                                                                                          |
| **push**           | (...items: T[]) =&gt; number                                                                                                  | Appends new elements to the end of an array, and returns the new length of the array.                                                                                                                                                       |
| **concat**         | (...items: <a href="#concatarray">ConcatArray</a>&lt;T&gt;[]) =&gt; T[]                                                       | Combines two or more arrays. This method returns a new array without modifying any existing arrays.                                                                                                                                         |
| **concat**         | (...items: (T \| <a href="#concatarray">ConcatArray</a>&lt;T&gt;)[]) =&gt; T[]                                                | Combines two or more arrays. This method returns a new array without modifying any existing arrays.                                                                                                                                         |
| **join**           | (separator?: string \| undefined) =&gt; string                                                                                | Adds all the elements of an array into a string, separated by the specified separator string.                                                                                                                                               |
| **reverse**        | () =&gt; T[]                                                                                                                  | Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.                                                                                                                        |
| **shift**          | () =&gt; T \| undefined                                                                                                       | Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.                                                                                                         |
| **slice**          | (start?: number \| undefined, end?: number \| undefined) =&gt; T[]                                                            | Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.                           |
| **sort**           | (compareFn?: ((a: T, b: T) =&gt; number) \| undefined) =&gt; this                                                             | Sorts an array in place. This method mutates the array and returns a reference to the same array.                                                                                                                                           |
| **splice**         | (start: number, deleteCount?: number \| undefined) =&gt; T[]                                                                  | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.                                                                                                                      |
| **splice**         | (start: number, deleteCount: number, ...items: T[]) =&gt; T[]                                                                 | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.                                                                                                                      |
| **unshift**        | (...items: T[]) =&gt; number                                                                                                  | Inserts new elements at the start of an array, and returns the new length of the array.                                                                                                                                                     |
| **indexOf**        | (searchElement: T, fromIndex?: number \| undefined) =&gt; number                                                              | Returns the index of the first occurrence of a value in an array, or -1 if it is not present.                                                                                                                                               |
| **lastIndexOf**    | (searchElement: T, fromIndex?: number \| undefined) =&gt; number                                                              | Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.                                                                                                                                      |
| **every**          | &lt;S extends T&gt;(predicate: (value: T, index: number, array: T[]) =&gt; value is S, thisArg?: any) =&gt; this is S[]       | Determines whether all the members of an array satisfy the specified test.                                                                                                                                                                  |
| **every**          | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; boolean                                 | Determines whether all the members of an array satisfy the specified test.                                                                                                                                                                  |
| **some**           | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; boolean                                 | Determines whether the specified callback function returns true for any element of an array.                                                                                                                                                |
| **forEach**        | (callbackfn: (value: T, index: number, array: T[]) =&gt; void, thisArg?: any) =&gt; void                                      | Performs the specified action for each element in an array.                                                                                                                                                                                 |
| **map**            | &lt;U&gt;(callbackfn: (value: T, index: number, array: T[]) =&gt; U, thisArg?: any) =&gt; U[]                                 | Calls a defined callback function on each element of an array, and returns an array that contains the results.                                                                                                                              |
| **filter**         | &lt;S extends T&gt;(predicate: (value: T, index: number, array: T[]) =&gt; value is S, thisArg?: any) =&gt; S[]               | Returns the elements of an array that meet the condition specified in a callback function.                                                                                                                                                  |
| **filter**         | (predicate: (value: T, index: number, array: T[]) =&gt; unknown, thisArg?: any) =&gt; T[]                                     | Returns the elements of an array that meet the condition specified in a callback function.                                                                                                                                                  |
| **reduce**         | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T) =&gt; T                           | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.                      |
| **reduce**         | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T          |                                                                                                                                                                                                                                             |
| **reduce**         | &lt;U&gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =&gt; U, initialValue: U) =&gt; U | Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.                      |
| **reduceRight**    | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T) =&gt; T                           | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |
| **reduceRight**    | (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) =&gt; T, initialValue: T) =&gt; T          |                                                                                                                                                                                                                                             |
| **reduceRight**    | &lt;U&gt;(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) =&gt; U, initialValue: U) =&gt; U | Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. |


#### ConcatArray

| Prop         | Type                |
| ------------ | ------------------- |
| **`length`** | <code>number</code> |

| Method    | Signature                                                          |
| --------- | ------------------------------------------------------------------ |
| **join**  | (separator?: string \| undefined) =&gt; string                     |
| **slice** | (start?: number \| undefined, end?: number \| undefined) =&gt; T[] |


#### ScreenField

| Prop          | Type                |
| ------------- | ------------------- |
| **`fieldId`** | <code>number</code> |
| **`header`**  | <code>string</code> |
| **`content`** | <code>string</code> |


### Enums


#### FeedbackType

| Members       | Value                  |
| ------------- | ---------------------- |
| **`ERROR`**   | <code>"error"</code>   |
| **`SUCCESS`** | <code>"success"</code> |
| **`INFO`**    | <code>"info"</code>    |


#### ImageResolution

| Members      | Value                 |
| ------------ | --------------------- |
| **`LARGE`**  | <code>"large"</code>  |
| **`NORMAL`** | <code>"normal"</code> |
| **`SMALL`**  | <code>"small"</code>  |

</docgen-api>