Ver Código Fonte

IPU标准版:整理指纹解锁 & 手势锁插件

liufl5 3 anos atrás
pai
commit
a26be3fbc5

+ 2 - 15
IPUMobileFunc/IPUMobileFunc/IPUAuthenticationPlugin.h

@ -10,53 +10,40 @@
10 10
11 11
@interface IPUAuthenticationPlugin : IPUPlugin
12 12
13
#pragma mark - 指纹锁
13 14
/**
14 15
 是否支持指纹解锁
15
16
 @param params <#params description#>
17 16
 */
18 17
- (void)isSupportFingerprintAuthentication:(NSArray *)params;
19 18
20 19
/**
21 20
 指纹解锁
22
23
 @param params <#params description#>
24 21
 */
25 22
- (void)fingerprintAuthentication:(NSArray *)params;
26 23
27
#pragma mark - GestureAuthentication
24
#pragma mark - 手势锁
28 25
/**
29 26
 设置手势锁颜色:常规颜色、选中颜色、错误颜色
30
 
31
 @param params <#params description#>
32 27
 */
33 28
-(void)styleGestureLock:(NSArray *)params;
34 29
35 30
/**
36 31
 设置手势锁
37
38
 @param params <#params description#>
39 32
 */
40 33
- (void)setGestureLock:(NSArray *)params;
41 34
42 35
/**
43 36
 手势解锁
44
45
 @param params <#params description#>
46 37
 */
47 38
- (void)validateGestureLock:(NSArray *)params;
48 39
49 40
/**
50 41
 修改手势密码
51
52
 @param params <#params description#>
53 42
 */
54 43
- (void)updateGestureLock:(NSArray *)params;
55 44
56 45
/**
57 46
 删除手势密码
58
 
59
 @param params <#params description#>
60 47
 */
61 48
- (void)delGestureLock:(NSArray *)params;
62 49

+ 12 - 3
IPUMobileFunc/IPUMobileFunc/IPUAuthenticationPlugin.m

@ -13,6 +13,10 @@
13 13
14 14
@implementation IPUAuthenticationPlugin
15 15
16
#pragma mark - 指纹锁
17
/**
18
 是否支持指纹解锁
19
 */
16 20
- (void)isSupportFingerprintAuthentication:(NSArray *)params {
17 21
    LAContext *context = [[LAContext alloc] init];
18 22
    
@ -26,6 +30,9 @@
26 30
    }
27 31
}
28 32
33
/**
34
 指纹解锁
35
 */
29 36
- (void)fingerprintAuthentication:(NSArray *)params {
30 37
    LAContext *context = [[LAContext alloc] init];
31 38
    
@ -73,8 +80,8 @@
73 80
    }];
74 81
}
75 82
76
#pragma mark - GestureAuthentication
77
/*
83
#pragma mark - 手势锁
84
/**
78 85
 设置手势锁颜色:常规颜色、选中颜色、错误颜色
79 86
 */
80 87
-(void)styleGestureLock:(NSArray *)params{
@ -132,6 +139,7 @@
132 139
        [defaults synchronize];
133 140
    }
134 141
}
142
135 143
/**
136 144
 设置手势锁
137 145
 */
@ -200,6 +208,7 @@
200 208
        [lockVC dismiss:.5f];
201 209
    }];
202 210
}
211
203 212
/**
204 213
 删除手势密码
205 214
 */
@ -209,6 +218,7 @@
209 218
    [defaults synchronize];
210 219
    [self callback:@"1"];
211 220
}
221
212 222
/*
213 223
 判断是否设置原生手势锁
214 224
 */
@ -220,7 +230,6 @@
220 230
        [self callback:@"0"];
221 231
    }
222 232
}
223
224 233
#pragma mark - other method
225 234
/*
226 235
 判断是否设置过手势密码

BIN
display-center/display-center.xcodeproj/project.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate