Spring774
2025-11-12 2379cc78112ecbe65a9fcb817d6441875f785803
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
import { SdkDefault } from "./SdkDefault";
 
export class SdkIOS extends SdkDefault {
    private className = "com/utils/Sdk";
    share(imageBase64: any, text: string) {
        //jsb.reflection.callStaticMethod(this.className, "share", "(Ljava/lang/String;Ljava/lang/String;)V", imageBase64, text);
    }
 
    /////////////////////////////////////////////////////Purchase
    getProducts(cb?: (catalog: Array<any>) => void) {
 
    }
    getPurchases(cb?: (result: boolean, purchases?: any) => void) {
    }
    purchaseProduct(sku: string, cb?: (result: boolean, purchases?: any) => void) {
        cb && cb(true, { purchaseToken: sku })
    }
    consumePurchase(token: string, cb?: (result: boolean) => void) {
        cb && cb(true);
    }
    isPaymentReady(cb?: (result: boolean) => void) {
        cb && cb(true);
    }
 
 
    //Ads
    showInterAd() {
        cc.log('show InterAd');
    }
 
    showVideoAd(cb?: (result: boolean) => void) {
        cc.log('show VideoAd');
        cb && cb(true);
    }
 
    vibrate(milliSeconds: number) {
 
    }
 
    isVibrateSupport(): boolean {
        return false;
    }
 
    rate() {
 
    }
}