-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.d.ts
More file actions
69 lines (50 loc) · 2.07 KB
/
index.d.ts
File metadata and controls
69 lines (50 loc) · 2.07 KB
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
import { View } from '@nativescript/core';
import { TypeRiveAlignment, TypeRiveDirection, TypeRiveFit, TypeRiveLoop } from './common';
export { TypeRiveAlignment, TypeRiveDirection, TypeRiveFit, TypeRiveLoop } from './common';
export declare class RiveView extends View {
/**
* app.rive.runtime.kotlin.RiveAnimationView
*/
readonly android: any;
/**
* NSCRiveController
*/
readonly ios: any;
constructor();
public src: string;
public autoPlay: boolean;
public alignment?: RiveAlignment;
public fit?: RiveFit;
public artboardName?: string;
public animationName?: string;
public stateMachineName?: string;
/*
* loop: default AUTO
* direction: default AUTO
* */
public play(loop?: TypeRiveLoop, direction?: TypeRiveDirection, settleInitialState?: true): void;
/*
* loop: default AUTO
* direction: default AUTO
* */
public playWithAnimations(animationNames: string[], loop?: TypeRiveLoop, direction?: TypeRiveDirection, areStateMachines?: false, settleInitialState?: true): void;
/*
* loop: default AUTO
* direction: default AUTO
* */
public playWithAnimation(animationName: string, loop?: TypeRiveLoop, direction?: TypeRiveDirection, areStateMachines?: false, settleInitialState?: true): void;
public stop(): void;
public stopWithAnimations(animationNames: string[], areStateMachines?: false): void;
public stopWithAnimation(animationName: String, isStateMachine?: false): void;
public pause(): void;
public pauseWithAnimation(animationName: string, areStateMachines?: false): void;
public pauseWithAnimations(animationNames: string[], areStateMachines?: false): void;
public reset(): void;
public fireState(stateMachineName: string, inputName: string): void;
public isPlaying(): boolean;
public getStateMachines();
public getAnimations();
triggerInput(name: string): void;
triggerInputValue(name: string, value: string | boolean | number | null): void;
on(event: 'stateChange', callback: (ev: { object: RiveView; detail: { stateMachine: any; stateName: string } }) => void, thisArg?: any): void;
}