@nativescript/rive
Version:
Rive for NativeScript
36 lines (35 loc) • 1.6 kB
TypeScript
import { RiveViewBase, TypeRiveDirection, TypeRiveLoop } from './common';
export { TypeRiveAlignment, TypeRiveDirection, TypeRiveFit, TypeRiveLoop } from './common';
export declare class RiveView extends RiveViewBase {
bytes: any;
nativeViewProtected: app.rive.runtime.kotlin.RiveAnimationView;
listener: org.nativescript.plugins.rive.Rive;
constructor();
createNativeView(): app.rive.runtime.kotlin.RiveAnimationView;
initNativeView(): void;
disposeNativeView(): void;
triggerInput(name: string): void;
triggerInputValue(name: string, value: string | boolean | number | null): void;
setInputValue(value: string | boolean | number | null): void;
private _setInputValue;
private _init;
isPlaying(): boolean;
play(loop?: TypeRiveLoop, direction?: TypeRiveDirection, settleInitialState?: boolean): void;
playWithAnimations(animationNames?: string | string[], loop?: TypeRiveLoop, direction?: TypeRiveDirection, areStateMachines?: boolean, settleInitialState?: boolean): void;
stop(): void;
stopWithAnimations(animations?: string[], areStateMachines?: boolean): void;
pause(): void;
pauseWithAnimations(animations?: string | string[], areStateMachines?: boolean): void;
reset(): void;
fireState(stateMachineName: string, inputName: string): void;
getStateMachines(): void;
getPlayingStateMachines(): void;
getAnimations(): void;
getPlayingAnimations(): void;
private addListener;
private buildList;
private getLoop;
private getDirection;
private getFit;
private getAlignment;
}