idlize

Форк
0
/
NativeModuleEmpty_template.ts 
100 строк · 4.5 Кб
1
export class NativeModuleEmptyIntegrated implements NativeModuleIntegrated {
2
%GENERATED_EMPTY_METHODS%
3
    _GetGroupedLog(index: KInt): KPointer {
4
        throw new Error("_GetResultString")
5
    }
6
    _StartGroupedLog(index: KInt): void  {
7
        throw new Error("_StartGroupedLog")
8
    }
9
    _StopGroupedLog(index: KInt): void  {
10
        throw new Error("_StopGroupedLog")
11
    }
12
    _GetStringFinalizer(): KPointer  {
13
        throw new Error("_GetStringFinalizer")
14
    }
15
    _InvokeFinalizer(ptr: KPointer, finalizer: KPointer): void  {
16
        throw new Error("_InvokeFinalizer")
17
    }
18
    _GetNodeFinalizer(): KPointer  {
19
        throw new Error("_InvokeFinalizer")
20
    }
21
    _StringLength(ptr: KPointer): KInt  {
22
        throw new Error("_StringLength")
23
    }
24
    _StringData(ptr: KPointer, buffer: KUint8ArrayPtr, length: KInt): void  {
25
        throw new Error("_StringLength")
26
    }
27
    _StringMake(value: KStringPtr): KPointer {
28
        throw new Error("_StringMake")
29
    }
30
    _ManagedStringWrite(value: KStringPtr, buffer: KUint8ArrayPtr, offset: KInt): KInt {
31
        throw new Error("_ManagedStringWrite")
32
    }
33
    _Test_SetEventsApi(): void {
34
        throw new Error("_Test_Common_OnChildTouchTest")
35
    }
36
    _Test_Common_OnChildTouchTest(valueArray: Uint8Array, valueSerializerLength: KInt): void {
37
        throw new Error("_Test_Common_OnChildTouchTest")
38
    }
39
    _Test_List_OnScrollVisibleContentChange(valueArray: Uint8Array, valueSerializerLength: KInt): void {
40
        throw new Error("_Test_List_OnScrollVisibleContentChange")
41
    }
42
    _Test_TextPicker_OnAccept(valueArray: Uint8Array, valueSerializerLength: KInt): void {
43
        throw new Error("_Test_TextPicker_OnAccept")
44
    }
45
    _TestPerfNumber(value: KInt): KInt { return 0 }
46
    _TestPerfNumberWithArray(value: KUint8ArrayPtr, length: KInt): void {}
47
    _StartPerf(traceName: KStringPtr): void {}
48
    _EndPerf(traceName: KStringPtr): void {}
49
    _DumpPerf(options: KInt): KPointer { return 0 }
50
}
51

52
export class NativeModuleEmpty extends NativeModuleEmptyIntegrated implements NativeModule {
53
    // BasicNodeAPI
54
    _CreateNode(type: KInt, id: KInt, flags: KInt): NodePointer { return nullptr }
55
    _GetNodeByViewStack(): NodePointer { return nullptr }
56
    _DisposeNode(ptr: NodePointer): void {}
57
    _AddChild(parent: NodePointer, child: NodePointer): KInt { return 0 }
58
    _RemoveChild(parent: NodePointer, child: NodePointer): void {}
59
    _InsertChildAfter(parent: NodePointer, child: NodePointer, sibling: NodePointer): KInt { return 0 }
60
    _InsertChildBefore(parent: NodePointer, child: NodePointer, sibling: NodePointer): KInt { return 0 }
61
    _InsertChildAt(parent: NodePointer, child: NodePointer,  position: KInt): KInt { return 0 }
62
    _ApplyModifierFinish(ptr: NodePointer): void {}
63
    _MarkDirty(ptr: NodePointer, flag: KUInt): void {}
64
    _IsBuilderNode(ptr: NodePointer): KBoolean { return 0 }
65
    _ConvertLengthMetricsUnit(value: KFloat, originUnit: KInt, targetUnit: KInt): KFloat { return 0 }
66

67
    // ExtendedNodeAPI
68
    _SetCustomCallback(node: NodePointer, callbackId: KInt): void {}
69
    _MeasureLayoutAndDraw(root: NodePointer): void {}
70
    _MeasureNode(root: NodePointer, data: KFloat32ArrayPtr): KInt { return -1 }
71
    _LayoutNode(root: NodePointer, data: KFloat32ArrayPtr): KInt { return -1 }
72
    _DrawNode(root: NodePointer, data: KFloat32ArrayPtr): KInt { return -1 }
73
    _SetMeasureWidth(root: NodePointer, value: KInt): void {}
74
    _GetMeasureWidth(root: NodePointer): KInt { return -1 }
75
    _SetMeasureHeight(root: NodePointer, value: KInt): void {}
76
    _GetMeasureHeight(root: NodePointer): KInt { return -1 }
77
    _SetX(root: NodePointer, value: KInt): void {}
78
    _GetX(root: NodePointer): KInt{ return -1 }
79
    _SetY(root: NodePointer, value: KInt): void {}
80
    _GetY(root: NodePointer): KInt { return -1 }
81
    _SetAlignment(root: NodePointer, value: KInt): void {}
82
    _GetAlignment(root: NodePointer): KInt { return -1 }
83

84
    _IndexerChecker(node: NodePointer): KInt { return -1 }
85

86
    _SetRangeUpdater(node: NodePointer, updaterId: KInt): void {}
87
    _SetLazyItemIndexer(node: NodePointer, indexerId: KInt): KInt { return -1 }
88

89

90
    _GetPipelineContext(nodePtr: NodePointer): PipelineContext { return 0 }
91
    _SetVsyncCallback(pipelineContext: PipelineContext, callbackId: KInt): KInt { return -1 }
92
    _UnblockVsyncWait(pipelineContext: PipelineContext): KInt { return -1 }
93

94
    _CheckEvents(result: KInt32ArrayPtr, count: KInt): KInt { return -1 }
95
    _SendEvent(event: KInt32ArrayPtr, count: KInt): void {}
96

97
    _SetChildTotalCount(ptr: NodePointer, value: KInt): void {}
98

99
    _ShowCrash(messagePtr: KStringPtr): void {}
100
}

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.