Flybuy plugin for capacitor
npm install capacitor-flybuy-plugin
npx cap synconCreate(...)onActivityStarted()onActivityStopped()onLocationPermissionChanged()fetchOrders()getAllSites()getSitesByQuery(...)getConfig()createCustomer(...)updateCustomer(...)getCurrentCustomer()updatePushToken(...)handleNotification(...)createOrder(...)claimOrder(...)getPermissionStatus()requestPermissions(...)updateState(...)onEvents()offEvents()- Interfaces
onCreate(options: { appKey: string[]; }) => any| Param | Type |
|---|---|
options |
{ appKey: {}; } |
Returns: any
onActivityStarted() => anyReturns: any
onActivityStopped() => anyReturns: any
onLocationPermissionChanged() => anyReturns: any
fetchOrders() => anyReturns: any
getAllSites() => anyReturns: any
getSitesByQuery(options: { query: string[]; }) => any| Param | Type |
|---|---|
options |
{ query: {}; } |
Returns: any
getConfig() => anyReturns: any
createCustomer(options: { customer: Customer[]; }) => any| Param | Type |
|---|---|
options |
{ customer: {}; } |
Returns: any
updateCustomer(options: { customer: Customer[]; }) => any| Param | Type |
|---|---|
options |
{ customer: {}; } |
Returns: any
getCurrentCustomer() => anyReturns: any
updatePushToken(options: { token: string[]; }) => any| Param | Type |
|---|---|
options |
{ token: {}; } |
Returns: any
handleNotification(options: { notification: any[]; }) => any| Param | Type |
|---|---|
options |
{ notification: {}; } |
Returns: any
createOrder(options: { order: Order[]; }) => any| Param | Type |
|---|---|
options |
{ order: {}; } |
Returns: any
claimOrder(options: { code: string[]; }) => any| Param | Type |
|---|---|
options |
{ code: {}; } |
Returns: any
getPermissionStatus() => anyReturns: any
requestPermissions(options: { permissions: boolean[]; }) => any| Param | Type |
|---|---|
options |
{ permissions: {}; } |
Returns: any
updateState(options: { event: any[]; }) => any| Param | Type |
|---|---|
options |
{ event: {}; } |
Returns: any
onEvents() => anyReturns: any
offEvents() => anyReturns: any
| Prop | Type |
|---|---|
status |
"error" | "ok" |
messageAs |
any |