This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 467
/
Copy pathHCPPlugin.h
76 lines (63 loc) · 1.78 KB
/
HCPPlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// HCPPlugin.h
//
// Created by Nikolay Demyankov on 07.08.15.
//
#import <Cordova/CDVPlugin.h>
#import <Cordova/CDV.h>
#import "HCPFetchUpdateOptions.h"
/**
* Plugin main class
*/
@interface HCPPlugin : CDVPlugin
#pragma mark Properties
/**
* Fetch update preferences. Used by default if none provided from JS side.
* Can be used to controll plugin's workflow from the native side.
*/
@property (nonatomic, strong) HCPFetchUpdateOptions *defaultFetchUpdateOptions;
#pragma mark Methods, invoked from JavaScript
/**
* Initialize application with callback from web side.
*
* @param command command with which the method is called
*/
- (void)jsInitPlugin:(CDVInvokedUrlCommand *)command;
/**
* Set plugin options.
*
* @param command command with which the method is called
*/
- (void)jsConfigure:(CDVInvokedUrlCommand *)command;
/**
* Perform update availability check.
* Basically, queue update task.
*
* @param command command with which the method is called
*/
- (void)jsFetchUpdate:(CDVInvokedUrlCommand *)command;
/**
* Install update if any available.
*
* @param command command with which the method is called
*/
- (void)jsInstallUpdate:(CDVInvokedUrlCommand *)command;
/**
* Show dialog with request to update the application through the App Store.
*
* @param command command with which the method is called
*/
- (void)jsRequestAppUpdate:(CDVInvokedUrlCommand *)command;
/**
* Check if new version was loaded and can be installed.
*
* @param command command with which the method is called
*/
- (void)jsIsUpdateAvailableForInstallation:(CDVInvokedUrlCommand *)command;
/**
* Get information about app and web versions.
*
* @param command command with which the method is called
*/
- (void)jsGetVersionInfo:(CDVInvokedUrlCommand *)command;
@end