scripting-cli 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.js +67 -1
- package/dist/config/AppJsonPlugin.js +57 -26
- package/dist/config/webpack.config.js +85 -69
- package/dist/createApp.js +67 -27
- package/dist/index.js +0 -1
- package/dist/startDevServer.js +34 -18
- package/package.json +7 -3
- package/public/assets.d.ts +40 -0
- package/public/logo.svg +4 -0
- package/public/scripting.d.ts +598 -805
- package/src/build.ts +80 -1
- package/src/config/AppJsonPlugin.ts +80 -39
- package/src/config/webpack.config.ts +97 -69
- package/src/createApp.ts +97 -30
- package/src/index.ts +0 -1
- package/src/startDevServer.ts +28 -12
package/public/scripting.d.ts
CHANGED
|
@@ -100,7 +100,15 @@ type Color = string | {
|
|
|
100
100
|
g: number;
|
|
101
101
|
b: number;
|
|
102
102
|
/**
|
|
103
|
-
|
|
103
|
+
*alpha, 0 ~ 255
|
|
104
|
+
*/
|
|
105
|
+
a: number;
|
|
106
|
+
} | {
|
|
107
|
+
r: number;
|
|
108
|
+
g: number;
|
|
109
|
+
b: number;
|
|
110
|
+
/**
|
|
111
|
+
* opacity, 0 ~ 1
|
|
104
112
|
*/
|
|
105
113
|
o: number;
|
|
106
114
|
} | {
|
|
@@ -711,14 +719,18 @@ declare function RouterProvider({ router }: {
|
|
|
711
719
|
router: Router;
|
|
712
720
|
}): JSX.Element;
|
|
713
721
|
|
|
722
|
+
type Orientation = 'portrait' | 'landscape';
|
|
723
|
+
type ThemeMode = 'light' | 'dark';
|
|
724
|
+
type DeviceOrientation = 'portraitUp' | 'landscapeLeft' | 'portraitDown' | 'landscapeRight';
|
|
714
725
|
type MediaQueryData = {
|
|
715
726
|
size: {
|
|
716
727
|
width: number;
|
|
717
728
|
height: number;
|
|
718
729
|
};
|
|
730
|
+
orientation: Orientation;
|
|
719
731
|
devicePixelRatio: number;
|
|
720
732
|
textScaleFactor: number;
|
|
721
|
-
platformBrightness:
|
|
733
|
+
platformBrightness: ThemeMode;
|
|
722
734
|
padding: {
|
|
723
735
|
left: number;
|
|
724
736
|
right: number;
|
|
@@ -762,7 +774,7 @@ type ScriptingDeviceInfo = {
|
|
|
762
774
|
};
|
|
763
775
|
type ThemeState = {
|
|
764
776
|
isDarkMode: boolean;
|
|
765
|
-
themeMode:
|
|
777
|
+
themeMode: ThemeMode;
|
|
766
778
|
};
|
|
767
779
|
type LocaleState = {
|
|
768
780
|
locale: string;
|
|
@@ -771,7 +783,6 @@ type ShareResultStatus = 'success' | 'dismissed' | 'unavailable';
|
|
|
771
783
|
type AppLifeCycleState = 'resumed' | 'inactive' | 'paused' | 'detached' | 'hidden';
|
|
772
784
|
|
|
773
785
|
declare const isApiEnabled: boolean;
|
|
774
|
-
declare function addAppEvent<T extends Function>(type: string, handler: T): void;
|
|
775
786
|
|
|
776
787
|
declare function useByTheme<T>({ dark, light }: {
|
|
777
788
|
dark: T;
|
|
@@ -780,22 +791,21 @@ declare function useByTheme<T>({ dark, light }: {
|
|
|
780
791
|
|
|
781
792
|
declare function useLocale(): string;
|
|
782
793
|
|
|
783
|
-
declare function useThemeState():
|
|
784
|
-
isDarkMode: boolean;
|
|
785
|
-
themeMode: "dark" | "light";
|
|
786
|
-
};
|
|
794
|
+
declare function useThemeState(): ThemeState;
|
|
787
795
|
|
|
788
796
|
declare function useMediaQuery(): MediaQueryData;
|
|
789
797
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
798
|
+
declare class EventEmitter<R> {
|
|
799
|
+
private event;
|
|
800
|
+
constructor(event: string);
|
|
801
|
+
on(listener: (data: R) => void): void;
|
|
802
|
+
off(listener: (data: R) => void): void;
|
|
803
|
+
}
|
|
804
|
+
declare const AppEvent: {
|
|
805
|
+
AppLifeCycleStateChanged: EventEmitter<AppLifeCycleState>;
|
|
806
|
+
MediaQueryDataChanged: EventEmitter<MediaQueryData>;
|
|
807
|
+
LocaleChanged: EventEmitter<LocaleState>;
|
|
808
|
+
AppDispose: EventEmitter<void>;
|
|
799
809
|
};
|
|
800
810
|
|
|
801
811
|
type FileMode = 'read' | 'write' | 'writeOnly' | 'append' | 'writeOnlyAppend';
|
|
@@ -927,431 +937,127 @@ declare function writeAsBytes(path: string, contents: number[], options?: {
|
|
|
927
937
|
flush?: boolean;
|
|
928
938
|
}): Promise<void>;
|
|
929
939
|
|
|
930
|
-
type
|
|
931
|
-
type
|
|
932
|
-
type
|
|
933
|
-
type
|
|
934
|
-
type
|
|
935
|
-
type
|
|
936
|
-
type
|
|
937
|
-
declare const
|
|
938
|
-
type
|
|
939
|
-
type
|
|
940
|
-
type
|
|
941
|
-
declare const
|
|
942
|
-
declare const
|
|
943
|
-
declare const
|
|
944
|
-
declare const
|
|
945
|
-
declare const
|
|
946
|
-
declare const
|
|
947
|
-
declare const
|
|
948
|
-
declare const
|
|
949
|
-
declare const
|
|
950
|
-
declare const
|
|
951
|
-
declare const
|
|
952
|
-
declare const
|
|
953
|
-
declare const
|
|
954
|
-
declare const
|
|
955
|
-
declare const
|
|
956
|
-
declare namespace index
|
|
957
|
-
export { type
|
|
940
|
+
type index_Encoding = Encoding;
|
|
941
|
+
type index_FileMode = FileMode;
|
|
942
|
+
type index_FileStat = FileStat;
|
|
943
|
+
type index_FileSystemCommonEventDetails = FileSystemCommonEventDetails;
|
|
944
|
+
type index_FileSystemCreateEventDetails = FileSystemCreateEventDetails;
|
|
945
|
+
type index_FileSystemDeleteEventDetails = FileSystemDeleteEventDetails;
|
|
946
|
+
type index_FileSystemEvent = FileSystemEvent;
|
|
947
|
+
declare const index_FileSystemEvent: typeof FileSystemEvent;
|
|
948
|
+
type index_FileSystemEventDetails = FileSystemEventDetails;
|
|
949
|
+
type index_FileSystemModifyEventDetails = FileSystemModifyEventDetails;
|
|
950
|
+
type index_FileSystemMoveEventDetails = FileSystemMoveEventDetails;
|
|
951
|
+
declare const index_copyFile: typeof copyFile;
|
|
952
|
+
declare const index_createDirectory: typeof createDirectory;
|
|
953
|
+
declare const index_createLink: typeof createLink;
|
|
954
|
+
declare const index_documentsDirectory: typeof documentsDirectory;
|
|
955
|
+
declare const index_exists: typeof exists;
|
|
956
|
+
declare const index_isDirectory: typeof isDirectory;
|
|
957
|
+
declare const index_isFile: typeof isFile;
|
|
958
|
+
declare const index_readAsBytes: typeof readAsBytes;
|
|
959
|
+
declare const index_readAsString: typeof readAsString;
|
|
960
|
+
declare const index_readDirectory: typeof readDirectory;
|
|
961
|
+
declare const index_rename: typeof rename;
|
|
962
|
+
declare const index_temporaryDirectory: typeof temporaryDirectory;
|
|
963
|
+
declare const index_watch: typeof watch;
|
|
964
|
+
declare const index_writeAsBytes: typeof writeAsBytes;
|
|
965
|
+
declare const index_writeAsString: typeof writeAsString;
|
|
966
|
+
declare namespace index {
|
|
967
|
+
export { type index_Encoding as Encoding, type index_FileMode as FileMode, type index_FileStat as FileStat, type index_FileSystemCommonEventDetails as FileSystemCommonEventDetails, type index_FileSystemCreateEventDetails as FileSystemCreateEventDetails, type index_FileSystemDeleteEventDetails as FileSystemDeleteEventDetails, index_FileSystemEvent as FileSystemEvent, type index_FileSystemEventDetails as FileSystemEventDetails, type index_FileSystemModifyEventDetails as FileSystemModifyEventDetails, type index_FileSystemMoveEventDetails as FileSystemMoveEventDetails, index_copyFile as copyFile, index_createDirectory as createDirectory, index_createLink as createLink, index_documentsDirectory as documentsDirectory, index_exists as exists, index_isDirectory as isDirectory, index_isFile as isFile, index_readAsBytes as readAsBytes, index_readAsString as readAsString, index_readDirectory as readDirectory, remove$1 as remove, index_rename as rename, index_temporaryDirectory as temporaryDirectory, index_watch as watch, index_writeAsBytes as writeAsBytes, index_writeAsString as writeAsString };
|
|
958
968
|
}
|
|
959
969
|
|
|
960
|
-
declare function
|
|
961
|
-
|
|
962
|
-
declare const Device: {
|
|
963
|
-
readonly isIOS: boolean;
|
|
964
|
-
readonly isAndroid: boolean;
|
|
965
|
-
readonly brand: string;
|
|
966
|
-
readonly model: string;
|
|
967
|
-
readonly locale: string;
|
|
968
|
-
readonly systemLocale: string;
|
|
969
|
-
readonly systemLocales: string[];
|
|
970
|
-
readonly systemLanguageTag: string;
|
|
971
|
-
readonly sysmtemLanguageCode: string;
|
|
972
|
-
readonly systemCountryCode: string | undefined;
|
|
973
|
-
readonly systemScriptCode: string | undefined;
|
|
974
|
-
hapticFeedback: typeof hapticFeedback;
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* Share base64 image
|
|
979
|
-
* @param options
|
|
980
|
-
* @param options.image base64 format, e.g. data:image/png;base64,xxxxx...
|
|
981
|
-
* @param options.text Share text content
|
|
982
|
-
* @param options.subject Share subject
|
|
983
|
-
*/
|
|
984
|
-
declare function shareBase64Image(options: {
|
|
985
|
-
image: string;
|
|
986
|
-
text?: string;
|
|
987
|
-
subject?: string;
|
|
988
|
-
}): Promise<{
|
|
989
|
-
status: ShareResultStatus;
|
|
990
|
-
}>;
|
|
970
|
+
declare function getBatteryLevel(): Promise<number>;
|
|
991
971
|
|
|
992
972
|
/**
|
|
993
|
-
*
|
|
994
|
-
* @param options
|
|
995
|
-
* @param options.files Files path
|
|
996
|
-
* @param options.text Share text content
|
|
997
|
-
* @param options.subject Share subject
|
|
973
|
+
* Indicates the current battery state.
|
|
998
974
|
*/
|
|
999
|
-
declare
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
975
|
+
declare enum BatteryState {
|
|
976
|
+
/**
|
|
977
|
+
* The battery is fully charged.
|
|
978
|
+
*/
|
|
979
|
+
full = 0,
|
|
980
|
+
/**
|
|
981
|
+
* The battery is currently charging.
|
|
982
|
+
*/
|
|
983
|
+
charging = 1,
|
|
984
|
+
/**
|
|
985
|
+
* Device is connected to external power source, but not charging the battery.
|
|
986
|
+
*
|
|
987
|
+
* Usually happens when device has charge limit enabled and this limit is reached.
|
|
988
|
+
* Also, battery might be in this state if connected power source isn't powerful enough to charge the battery.
|
|
989
|
+
*
|
|
990
|
+
* Available on Android, MacOS and Linux platforms only.
|
|
991
|
+
*/
|
|
992
|
+
connectedNotCharging = 2,
|
|
993
|
+
/**
|
|
994
|
+
* The battery is currently losing energy.
|
|
995
|
+
*/
|
|
996
|
+
discharging = 3,
|
|
997
|
+
/**
|
|
998
|
+
* The state of the battery is unknown.
|
|
999
|
+
*/
|
|
1000
|
+
unknown = 4
|
|
1001
|
+
}
|
|
1002
|
+
declare function getBatteryState(): Promise<BatteryState>;
|
|
1006
1003
|
|
|
1007
|
-
|
|
1008
|
-
* Share text
|
|
1009
|
-
* @param options
|
|
1010
|
-
* @param options.text Share text content
|
|
1011
|
-
* @param options.subject Share subject
|
|
1012
|
-
*/
|
|
1013
|
-
declare function shareText(options: {
|
|
1014
|
-
text: string;
|
|
1015
|
-
subject?: string;
|
|
1016
|
-
}): Promise<{
|
|
1017
|
-
status: ShareResultStatus;
|
|
1018
|
-
}>;
|
|
1004
|
+
declare function hapticFeedback(type: 'heavyImpact' | 'lightImpact' | 'mediumImpact' | 'selectionClick'): void;
|
|
1019
1005
|
|
|
1020
|
-
declare
|
|
1021
|
-
shareText: typeof shareText;
|
|
1022
|
-
shareBase64Image: typeof shareBase64Image;
|
|
1023
|
-
shareFiles: typeof shareFiles;
|
|
1024
|
-
};
|
|
1006
|
+
declare function onBatteryStateChanged(listener: (state: BatteryState) => void): () => void;
|
|
1025
1007
|
|
|
1026
|
-
|
|
1027
|
-
* Copy text to clipboard.
|
|
1028
|
-
* @param text Text content
|
|
1029
|
-
* @returns
|
|
1030
|
-
*/
|
|
1031
|
-
declare function copyText(text: string): Promise<boolean>;
|
|
1008
|
+
declare function setLocale(locale: string): void;
|
|
1032
1009
|
|
|
1033
|
-
|
|
1034
|
-
* Get text form clipboard.
|
|
1035
|
-
* @returns
|
|
1036
|
-
*/
|
|
1037
|
-
declare function getClipboardText(): Promise<string | null>;
|
|
1010
|
+
declare function setPreferredOrientation(orientations: DeviceOrientation[]): void;
|
|
1038
1011
|
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1012
|
+
type AnimatedAlignProps = {
|
|
1013
|
+
alignment: Alignment;
|
|
1014
|
+
duration: number;
|
|
1015
|
+
heightFactor?: number;
|
|
1016
|
+
widthFactor?: number;
|
|
1017
|
+
curve?: Curve;
|
|
1018
|
+
onEnd?: () => void;
|
|
1019
|
+
children?: VirtualNode;
|
|
1042
1020
|
};
|
|
1021
|
+
declare const AnimatedAlign: FunctionComponent<AnimatedAlignProps>;
|
|
1043
1022
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
* @param options.buttonLabel 按钮文案(可选)
|
|
1055
|
-
*/
|
|
1056
|
-
declare function showAlert(options: {
|
|
1057
|
-
content: string;
|
|
1058
|
-
title?: string;
|
|
1059
|
-
buttonLabel?: string;
|
|
1060
|
-
}): Promise<void>;
|
|
1061
|
-
|
|
1062
|
-
type VstarBottomSheetOptions = {
|
|
1063
|
-
/** 标题 */
|
|
1064
|
-
title?: string;
|
|
1065
|
-
/** 是否显示取消按钮,默认不显示 */
|
|
1066
|
-
cancelButton?: boolean;
|
|
1067
|
-
/** 是否可往下拖动关闭,默认可以 */
|
|
1068
|
-
dragDownDissmisible?: boolean;
|
|
1069
|
-
/** action选项 */
|
|
1070
|
-
actions: {
|
|
1071
|
-
/** 文本内容 */
|
|
1072
|
-
label: string;
|
|
1073
|
-
/** 是否选中 */
|
|
1074
|
-
selected?: boolean;
|
|
1075
|
-
}[];
|
|
1023
|
+
type ContainerProps = BoxDecoration & BoxConstraints & {
|
|
1024
|
+
children?: VirtualNode;
|
|
1025
|
+
width?: number | 'infinity';
|
|
1026
|
+
height?: number | 'infinity';
|
|
1027
|
+
/** 设置数值则left,top,right,bottom都生效 */
|
|
1028
|
+
margin?: EdgeInsets | number;
|
|
1029
|
+
/** 设置数值则left,top,right,bottom都生效 */
|
|
1030
|
+
padding?: EdgeInsets | number;
|
|
1031
|
+
alignment?: Alignment;
|
|
1032
|
+
clipBehavior?: Clip;
|
|
1076
1033
|
};
|
|
1077
|
-
|
|
1078
|
-
* 展示bottom sheet 弹窗,类似iOS的选项功能
|
|
1079
|
-
* @param options
|
|
1080
|
-
* @param options.title 标题(可选)
|
|
1081
|
-
* @param options.cancelButton 是否展示取消按钮,默认展示(可选)
|
|
1082
|
-
* @param options.dragDownDissmisible 是否可以下拉关闭弹窗,默认可以(可选)
|
|
1083
|
-
* @param options.actions 选项列表
|
|
1084
|
-
* @param options.actions.label 选项文本
|
|
1085
|
-
* @param options.actions.selected 是否选中,设置为true改选项展示选中状态(可选)
|
|
1086
|
-
* @returns 点击某个选项后返回其下标,取消的话返回null
|
|
1087
|
-
*/
|
|
1088
|
-
declare function showBottomSheet({ title, cancelButton, dragDownDissmisible, actions, }: VstarBottomSheetOptions): Promise<number | null>;
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* 展示Confirm弹窗
|
|
1092
|
-
* @param options
|
|
1093
|
-
* @param options.content 提示内容
|
|
1094
|
-
* @param options.title 提示标题(可选)
|
|
1095
|
-
* @param options.cancelLabel 取消按钮文案(可选)
|
|
1096
|
-
* @param options.confirmLabel 确认按钮文案(可选)
|
|
1097
|
-
* @returns 返回true或false的promise
|
|
1098
|
-
*/
|
|
1099
|
-
declare function showConfirm(options: {
|
|
1100
|
-
content: string;
|
|
1101
|
-
title?: string;
|
|
1102
|
-
cancelLabel?: string;
|
|
1103
|
-
confirmLabel?: string;
|
|
1104
|
-
}): Promise<boolean>;
|
|
1105
|
-
|
|
1106
|
-
declare function showLoading(options: {
|
|
1107
|
-
message?: string;
|
|
1108
|
-
color?: string;
|
|
1109
|
-
}): void;
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* 展示提醒弹窗
|
|
1113
|
-
* @param options
|
|
1114
|
-
* @param options.title 标题
|
|
1115
|
-
* @param options.obscureText 是否使用晦涩文本模式,用于密码之类(可选)
|
|
1116
|
-
* @param options.hintText 提示placeholder文案(可选)
|
|
1117
|
-
* @param options.cancelLabel 取消按钮文案(可选)
|
|
1118
|
-
* @param options.confirmLabel 确认按钮文案(可选)
|
|
1119
|
-
* @returns 用户输入确认后返回字符串,用户取消后返回null
|
|
1120
|
-
*/
|
|
1121
|
-
declare function showPrompt(options: {
|
|
1122
|
-
title: string;
|
|
1123
|
-
obscureText?: boolean;
|
|
1124
|
-
hintText?: string;
|
|
1125
|
-
cancelLabel?: string;
|
|
1126
|
-
confirmLabel?: string;
|
|
1127
|
-
}): Promise<string | null>;
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* 展示Toast弹窗
|
|
1131
|
-
* @param options
|
|
1132
|
-
* @param options.content toast消息
|
|
1133
|
-
* @param options.duration 展示时间(可选),单位毫秒,默认2000毫秒(2秒)
|
|
1134
|
-
*/
|
|
1135
|
-
declare function showToast(options: {
|
|
1136
|
-
content: string;
|
|
1137
|
-
duration?: number;
|
|
1138
|
-
}): Promise<void>;
|
|
1034
|
+
declare const Container: FunctionComponent<ContainerProps>;
|
|
1139
1035
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
showPrompt: typeof showPrompt;
|
|
1145
|
-
showConfirm: typeof showConfirm;
|
|
1146
|
-
showToast: typeof showToast;
|
|
1147
|
-
showBottomSheet: typeof showBottomSheet;
|
|
1036
|
+
type AnimatedContainerProps = ContainerProps & {
|
|
1037
|
+
duration: number;
|
|
1038
|
+
curve?: Curve;
|
|
1039
|
+
onEnd?: () => void;
|
|
1148
1040
|
};
|
|
1041
|
+
declare const AnimatedContainer: FunctionComponent<AnimatedContainerProps>;
|
|
1149
1042
|
|
|
1150
|
-
type
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
requestFullMetadata?: boolean;
|
|
1043
|
+
type AnimatedOpacityProps = {
|
|
1044
|
+
opacity: number;
|
|
1045
|
+
duration: number;
|
|
1046
|
+
curve?: Curve;
|
|
1047
|
+
onEnd?: () => void;
|
|
1048
|
+
alwaysIncludeSemantics?: boolean;
|
|
1049
|
+
children?: VirtualNode;
|
|
1158
1050
|
};
|
|
1159
|
-
declare
|
|
1160
|
-
declare function pickMultipleImage(options?: PickFileOptions): Promise<string[]>;
|
|
1161
|
-
|
|
1162
|
-
declare function pickMedia(options?: PickFileOptions): Promise<string | null>;
|
|
1163
|
-
declare function pickMultipleMedia(options?: PickFileOptions): Promise<string[]>;
|
|
1051
|
+
declare const AnimatedOpacity: FunctionComponent<AnimatedOpacityProps>;
|
|
1164
1052
|
|
|
1165
|
-
type
|
|
1166
|
-
|
|
1053
|
+
type AnimatedPaddingProps = {
|
|
1054
|
+
padding: EdgeInsets | number;
|
|
1055
|
+
duration: number;
|
|
1056
|
+
curve?: Curve;
|
|
1057
|
+
onEnd?: () => void;
|
|
1058
|
+
children?: VirtualNode;
|
|
1167
1059
|
};
|
|
1168
|
-
declare
|
|
1169
|
-
|
|
1170
|
-
declare const FilePicker: {
|
|
1171
|
-
pickImage: typeof pickImage;
|
|
1172
|
-
pickMultipleImage: typeof pickMultipleImage;
|
|
1173
|
-
pickMedia: typeof pickMedia;
|
|
1174
|
-
pickMultipleMedia: typeof pickMultipleMedia;
|
|
1175
|
-
takePhoto: typeof takePhoto;
|
|
1176
|
-
};
|
|
1177
|
-
|
|
1178
|
-
declare const ImageSaver: {
|
|
1179
|
-
saveBytesImage(options: {
|
|
1180
|
-
image: ArrayBuffer;
|
|
1181
|
-
quality?: number;
|
|
1182
|
-
name?: string;
|
|
1183
|
-
}): Promise<boolean>;
|
|
1184
|
-
saveBase64Image(options: {
|
|
1185
|
-
image: string;
|
|
1186
|
-
quality?: number;
|
|
1187
|
-
name?: string;
|
|
1188
|
-
}): Promise<boolean>;
|
|
1189
|
-
saveNetworkImage(options: {
|
|
1190
|
-
url: string;
|
|
1191
|
-
quality?: number;
|
|
1192
|
-
name?: string;
|
|
1193
|
-
}): Promise<boolean>;
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
declare function set<T>(key: string, value: T): Promise<boolean>;
|
|
1197
|
-
declare function get<T>(key: string): Promise<T | null>;
|
|
1198
|
-
declare function remove(key: string): Promise<boolean>;
|
|
1199
|
-
declare const Storage: {
|
|
1200
|
-
set: typeof set;
|
|
1201
|
-
get: typeof get;
|
|
1202
|
-
remove: typeof remove;
|
|
1203
|
-
};
|
|
1204
|
-
|
|
1205
|
-
type PermissionStatus = {
|
|
1206
|
-
isDenied: boolean;
|
|
1207
|
-
isGranted: boolean;
|
|
1208
|
-
isLimited: boolean;
|
|
1209
|
-
isPermanentlyDenied: boolean;
|
|
1210
|
-
isProvisional: boolean;
|
|
1211
|
-
isRestricted: boolean;
|
|
1212
|
-
};
|
|
1213
|
-
type PermissionType = 'accessMediaLocation' | 'accessNotificationPolicy' | 'activityRecognition' | 'appTrackingTransparency' | 'audio' | 'bluetoothAdvertise' | 'bluetoothConnect' | 'bluetoothScan' | 'calendarFullAccess' | 'calendarWriteOnly' | 'camera' | 'contacts' | 'criticalAlerts' | 'ignoreBatteryOptimizations' | 'manageExternalStorage' | 'mediaLibrary' | 'microphone' | 'nearbyWifiDevices' | 'notification' | 'photos' | 'photosAddOnly' | 'reminders' | 'requestInstallPackages' | 'scheduleExactAlarm' | 'sensors' | 'sensorsAlways' | 'sms' | 'speech' | 'storage' | 'systemAlertWindow';
|
|
1214
|
-
declare function getPermissionStatus(type: PermissionType): Promise<PermissionStatus>;
|
|
1215
|
-
declare function requestPermission(type: PermissionType): Promise<PermissionStatus>;
|
|
1216
|
-
|
|
1217
|
-
declare function launchUrl(url: string): Promise<boolean>;
|
|
1218
|
-
|
|
1219
|
-
declare function openScriptingApp<T>(options: {
|
|
1220
|
-
url: string;
|
|
1221
|
-
params?: {
|
|
1222
|
-
[key: string]: any;
|
|
1223
|
-
};
|
|
1224
|
-
}): Promise<T | null>;
|
|
1225
|
-
|
|
1226
|
-
declare const Navigation: {
|
|
1227
|
-
launchUrl: typeof launchUrl;
|
|
1228
|
-
openScriptingApp: typeof openScriptingApp;
|
|
1229
|
-
};
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* 取消请求的token
|
|
1233
|
-
*
|
|
1234
|
-
* 同一个token可以用于多个请求
|
|
1235
|
-
*/
|
|
1236
|
-
declare class CancelToken {
|
|
1237
|
-
readonly token: string;
|
|
1238
|
-
private _isCancelled;
|
|
1239
|
-
get isCancelled(): boolean;
|
|
1240
|
-
/**
|
|
1241
|
-
* 调用cancel方法后所有请求都会被取消
|
|
1242
|
-
*/
|
|
1243
|
-
cancel(): void;
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* 网络请求 CancelToken
|
|
1247
|
-
*/
|
|
1248
|
-
declare function useCancelToken(): {
|
|
1249
|
-
get: () => CancelToken | undefined;
|
|
1250
|
-
create: () => CancelToken;
|
|
1251
|
-
};
|
|
1252
|
-
|
|
1253
|
-
declare function loadBytes(options: {
|
|
1254
|
-
url: string;
|
|
1255
|
-
noCache?: boolean;
|
|
1256
|
-
timeout?: number;
|
|
1257
|
-
debugLabel?: string;
|
|
1258
|
-
}): Promise<number[] | null>;
|
|
1259
|
-
|
|
1260
|
-
declare function loadFont(options: {
|
|
1261
|
-
family: string;
|
|
1262
|
-
urls: string[];
|
|
1263
|
-
type?: 'otf' | 'ttf';
|
|
1264
|
-
}): Promise<boolean>;
|
|
1265
|
-
|
|
1266
|
-
declare function loadJson<T>(options: {
|
|
1267
|
-
url: string;
|
|
1268
|
-
noCache?: boolean;
|
|
1269
|
-
timeout?: number;
|
|
1270
|
-
debugLabel?: string;
|
|
1271
|
-
}): Promise<T | null>;
|
|
1272
|
-
|
|
1273
|
-
declare function loadString<T>(options: {
|
|
1274
|
-
url: string;
|
|
1275
|
-
noCache?: boolean;
|
|
1276
|
-
timeout?: number;
|
|
1277
|
-
debugLabel?: string;
|
|
1278
|
-
}): Promise<T | null>;
|
|
1279
|
-
|
|
1280
|
-
declare const Request: {
|
|
1281
|
-
loadString: typeof loadString;
|
|
1282
|
-
loadJson: typeof loadJson;
|
|
1283
|
-
loadBytes: typeof loadBytes;
|
|
1284
|
-
loadFont: typeof loadFont;
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
|
-
type SocketIOOptions = {};
|
|
1288
|
-
|
|
1289
|
-
declare class SocketIO {
|
|
1290
|
-
private key;
|
|
1291
|
-
url: string;
|
|
1292
|
-
private _eventMap;
|
|
1293
|
-
constructor(key: string, url: string);
|
|
1294
|
-
connect(): void;
|
|
1295
|
-
isConnected(): Promise<boolean | null>;
|
|
1296
|
-
on<T>(event: string, callback: (data: T) => void): void;
|
|
1297
|
-
once<T>(event: string, callback: (data: T) => void): void;
|
|
1298
|
-
off<T>(event: string, callback: (data: T) => void): void;
|
|
1299
|
-
emit(event: string, data?: any): void;
|
|
1300
|
-
emitWithAck(event: string, data?: any): Promise<unknown>;
|
|
1301
|
-
close(): void;
|
|
1302
|
-
dispose(): void;
|
|
1303
|
-
static open(url: string, options?: SocketIOOptions): Promise<SocketIO>;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
type AnimatedAlignProps = {
|
|
1307
|
-
alignment: Alignment;
|
|
1308
|
-
duration: number;
|
|
1309
|
-
heightFactor?: number;
|
|
1310
|
-
widthFactor?: number;
|
|
1311
|
-
curve?: Curve;
|
|
1312
|
-
onEnd?: () => void;
|
|
1313
|
-
children?: VirtualNode;
|
|
1314
|
-
};
|
|
1315
|
-
declare const AnimatedAlign: FunctionComponent<AnimatedAlignProps>;
|
|
1316
|
-
|
|
1317
|
-
type ContainerProps = BoxDecoration & BoxConstraints & {
|
|
1318
|
-
children?: VirtualNode;
|
|
1319
|
-
width?: number | 'infinity';
|
|
1320
|
-
height?: number | 'infinity';
|
|
1321
|
-
/** 设置数值则left,top,right,bottom都生效 */
|
|
1322
|
-
margin?: EdgeInsets | number;
|
|
1323
|
-
/** 设置数值则left,top,right,bottom都生效 */
|
|
1324
|
-
padding?: EdgeInsets | number;
|
|
1325
|
-
alignment?: Alignment;
|
|
1326
|
-
clipBehavior?: Clip;
|
|
1327
|
-
};
|
|
1328
|
-
declare const Container: FunctionComponent<ContainerProps>;
|
|
1329
|
-
|
|
1330
|
-
type AnimatedContainerProps = ContainerProps & {
|
|
1331
|
-
duration: number;
|
|
1332
|
-
curve?: Curve;
|
|
1333
|
-
onEnd?: () => void;
|
|
1334
|
-
};
|
|
1335
|
-
declare const AnimatedContainer: FunctionComponent<AnimatedContainerProps>;
|
|
1336
|
-
|
|
1337
|
-
type AnimatedOpacityProps = {
|
|
1338
|
-
opacity: number;
|
|
1339
|
-
duration: number;
|
|
1340
|
-
curve?: Curve;
|
|
1341
|
-
onEnd?: () => void;
|
|
1342
|
-
alwaysIncludeSemantics?: boolean;
|
|
1343
|
-
children?: VirtualNode;
|
|
1344
|
-
};
|
|
1345
|
-
declare const AnimatedOpacity: FunctionComponent<AnimatedOpacityProps>;
|
|
1346
|
-
|
|
1347
|
-
type AnimatedPaddingProps = {
|
|
1348
|
-
padding: EdgeInsets | number;
|
|
1349
|
-
duration: number;
|
|
1350
|
-
curve?: Curve;
|
|
1351
|
-
onEnd?: () => void;
|
|
1352
|
-
children?: VirtualNode;
|
|
1353
|
-
};
|
|
1354
|
-
declare const AnimatedPadding: FunctionComponent<AnimatedPaddingProps>;
|
|
1060
|
+
declare const AnimatedPadding: FunctionComponent<AnimatedPaddingProps>;
|
|
1355
1061
|
|
|
1356
1062
|
type AnimatedPositionedProps = {
|
|
1357
1063
|
left?: number;
|
|
@@ -1563,6 +1269,13 @@ type CupertinoButtonProps = {
|
|
|
1563
1269
|
};
|
|
1564
1270
|
declare const CupertinoButton: FunctionComponent<CupertinoButtonProps>;
|
|
1565
1271
|
|
|
1272
|
+
type CupertinoColors = Record<"white" | "black" | "lightBackgroundGray" | "extraLightBackgroundGray" | "darkBackgroundGray" | "inactiveGray" | "systemBlue" | "systemGreen" | "systemMint" | "systemIndigo" | "systemOrange" | "systemPink" | "systemBrown" | "systemPurple" | "systemRed" | "systemTeal" | "systemCyan" | "systemYellow" | "systemGrey" | "systemGrey2" | "systemGrey3" | "systemGrey4" | "systemGrey5" | "systemGrey6" | "label" | "secondaryLabel" | "tertiaryLabel" | "quaternaryLabel" | "systemFill" | "secondarySystemFill" | "tertiarySystemFill" | "quaternarySystemFill" | "placeholderText" | "systemBackground" | "secondarySystemBackground" | "tertiarySystemBackground" | "systemGroupedBackground" | "secondarySystemGroupedBackground" | "tertiarySystemGroupedBackground" | "separator" | "opaqueSeparator" | "link" | "activeBlue" | "activeGreen" | "activeOrange" | "destructiveRed", Color>;
|
|
1273
|
+
declare const CupertinoColorsWithBrightness: {
|
|
1274
|
+
light: CupertinoColors;
|
|
1275
|
+
dark: CupertinoColors;
|
|
1276
|
+
};
|
|
1277
|
+
declare function useCupertinoColors(): CupertinoColors;
|
|
1278
|
+
|
|
1566
1279
|
type CupertinoContextMenuProps = {
|
|
1567
1280
|
enableHapticFeedback?: boolean;
|
|
1568
1281
|
actions: VirtualNode[];
|
|
@@ -2990,11 +2703,11 @@ declare class WebViewController {
|
|
|
2990
2703
|
readonly key: string;
|
|
2991
2704
|
constructor(key: string);
|
|
2992
2705
|
/**
|
|
2993
|
-
*
|
|
2706
|
+
* Load by url
|
|
2994
2707
|
*/
|
|
2995
2708
|
loadUrl(url: string): void;
|
|
2996
2709
|
/**
|
|
2997
|
-
*
|
|
2710
|
+
* Load string data
|
|
2998
2711
|
*/
|
|
2999
2712
|
loadData(data: string, options?: {
|
|
3000
2713
|
mimeType?: string;
|
|
@@ -3076,385 +2789,465 @@ type WrapProps = {
|
|
|
3076
2789
|
};
|
|
3077
2790
|
declare const Wrap: FunctionComponent<WrapProps>;
|
|
3078
2791
|
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
declare
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
declare
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
declare const
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
declare
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
declare
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
type
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
declare
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
declare const
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
declare const
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
declare
|
|
3337
|
-
|
|
3338
|
-
declare
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
type
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
type
|
|
3355
|
-
declare
|
|
3356
|
-
|
|
3357
|
-
declare
|
|
3358
|
-
|
|
3359
|
-
declare
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
declare
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
declare
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
declare
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
type
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
type
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
declare
|
|
3456
|
-
|
|
3457
|
-
export { index_AbsorbPointer as AbsorbPointer, type index_AbsorbPointerProps as AbsorbPointerProps, type index_AixsDirection as AixsDirection, type index_Alignment as Alignment, index_AnimatedAlign as AnimatedAlign, type index_AnimatedAlignProps as AnimatedAlignProps, index_AnimatedContainer as AnimatedContainer, type index_AnimatedContainerProps as AnimatedContainerProps, index_AnimatedOpacity as AnimatedOpacity, type index_AnimatedOpacityProps as AnimatedOpacityProps, index_AnimatedPadding as AnimatedPadding, type index_AnimatedPaddingProps as AnimatedPaddingProps, index_AnimatedPositioned as AnimatedPositioned, type index_AnimatedPositionedProps as AnimatedPositionedProps, index_AnimatedRotation as AnimatedRotation, type index_AnimatedRotationProps as AnimatedRotationProps, index_AnimatedScale as AnimatedScale, type index_AnimatedScaleProps as AnimatedScaleProps, index_AnimatedSize as AnimatedSize, type index_AnimatedSizeProps as AnimatedSizeProps, index_AnimatedSlide as AnimatedSlide, type index_AnimatedSlideProps as AnimatedSlideProps, type index_AnimationControllerIntialOptions as AnimationControllerIntialOptions, type index_AnimationInitalOptions as AnimationInitalOptions, type index_AnimationStatus as AnimationStatus, type index_AnimationStatusListener as AnimationStatusListener, type index_AnimationValue as AnimationValue, index_AspectRatio as AspectRatio, type index_AspectRatioProps as AspectRatioProps, index_AutoSizeText as AutoSizeText, type index_AutoSizeTextProps as AutoSizeTextProps, type index_Axis as Axis, index_BackdropFilter as BackdropFilter, type index_BackdropFilterProps as BackdropFilterProps, index_Baseline as Baseline, type index_BaselineProps as BaselineProps, type index_BlendMode as BlendMode, type index_BlurStyle as BlurStyle, type index_BorderRadius as BorderRadius, type index_BorderSide as BorderSide, index_BottomNavigationBarItem as BottomNavigationBarItem, type index_BottomNavigationBarItemProps as BottomNavigationBarItemProps, type index_BoxConstraints as BoxConstraints, type index_BoxDecoration as BoxDecoration, type index_BoxFit as BoxFit, type index_BoxShadow as BoxShadow, type index_Brightness as Brightness, index_CSSFilter as CSSFilter, type index_CSSFilterMatrix as CSSFilterMatrix, index_CSSFilterPresets as CSSFilterPresets, type index_CSSFilterPresetsEffect as CSSFilterPresetsEffect, type index_CSSFilterPresetsProps as CSSFilterPresetsProps, type index_CSSFilterProps as CSSFilterProps, index_Center as Center, type index_CenterProps as CenterProps, index_CircularProgressIndicator as CircularProgressIndicator, type index_CircularProgressIndicatorProps as CircularProgressIndicatorProps, type index_Clip as Clip, index_ClipOval as ClipOval, type index_ClipOvalProps as ClipOvalProps, index_ClipRRect as ClipRRect, type index_ClipRRectProps as ClipRRectProps, index_ClipRect as ClipRect, type index_ClipRectProps as ClipRectProps, type index_Color as Color, index_Column as Column, type index_ColumnProps as ColumnProps, index_CompositedTransformFollower as CompositedTransformFollower, type index_CompositedTransformFollowerProps as CompositedTransformFollowerProps, index_CompositedTransformTarget as CompositedTransformTarget, type index_CompositedTransformTargetProps as CompositedTransformTargetProps, index_ConstrainedBox as ConstrainedBox, type index_ConstrainedBoxProps as ConstrainedBoxProps, index_Container as Container, type index_ContainerProps as ContainerProps, type index_CrossAxisAlignment as CrossAxisAlignment, index_CupertinoActionSheet as CupertinoActionSheet, index_CupertinoActionSheetAction as CupertinoActionSheetAction, type index_CupertinoActionSheetActionProps as CupertinoActionSheetActionProps, type index_CupertinoActionSheetProps as CupertinoActionSheetProps, index_CupertinoActivityIndicator as CupertinoActivityIndicator, type index_CupertinoActivityIndicatorProps as CupertinoActivityIndicatorProps, index_CupertinoAlertDialog as CupertinoAlertDialog, type index_CupertinoAlertDialogProps as CupertinoAlertDialogProps, index_CupertinoButton as CupertinoButton, type index_CupertinoButtonProps as CupertinoButtonProps, index_CupertinoContextMenu as CupertinoContextMenu, index_CupertinoContextMenuAction as CupertinoContextMenuAction, type index_CupertinoContextMenuActionProps as CupertinoContextMenuActionProps, type index_CupertinoContextMenuProps as CupertinoContextMenuProps, index_CupertinoDatePicker as CupertinoDatePicker, type index_CupertinoDatePickerMode as CupertinoDatePickerMode, type index_CupertinoDatePickerProps as CupertinoDatePickerProps, index_CupertinoDialogAction as CupertinoDialogAction, type index_CupertinoDialogActionProps as CupertinoDialogActionProps, index_CupertinoFormRow as CupertinoFormRow, type index_CupertinoFormRowProps as CupertinoFormRowProps, index_CupertinoFormSection as CupertinoFormSection, type index_CupertinoFormSectionProps as CupertinoFormSectionProps, type index_CupertinoIcons as CupertinoIcons, index_CupertinoListSection as CupertinoListSection, type index_CupertinoListSectionProps as CupertinoListSectionProps, index_CupertinoListTile as CupertinoListTile, index_CupertinoListTileChevron as CupertinoListTileChevron, type index_CupertinoListTileProps as CupertinoListTileProps, index_CupertinoNavigationBar as CupertinoNavigationBar, index_CupertinoNavigationBarBackButton as CupertinoNavigationBarBackButton, type index_CupertinoNavigationBarBackButtonProps as CupertinoNavigationBarBackButtonProps, type index_CupertinoNavigationBarProps as CupertinoNavigationBarProps, index_CupertinoPageScaffold as CupertinoPageScaffold, type index_CupertinoPageScaffoldProps as CupertinoPageScaffoldProps, index_CupertinoPicker as CupertinoPicker, index_CupertinoPickerDefaultSelectionOverlay as CupertinoPickerDefaultSelectionOverlay, type index_CupertinoPickerDefaultSelectionOverlayProps as CupertinoPickerDefaultSelectionOverlayProps, type index_CupertinoPickerProps as CupertinoPickerProps, index_CupertinoScrollerBar as CupertinoScrollerBar, type index_CupertinoScrollerBarProps as CupertinoScrollerBarProps, index_CupertinoSearchTextField as CupertinoSearchTextField, type index_CupertinoSearchTextFieldProps as CupertinoSearchTextFieldProps, index_CupertinoSegmentedControl as CupertinoSegmentedControl, type index_CupertinoSegmentedControlProps as CupertinoSegmentedControlProps, index_CupertinoSlider as CupertinoSlider, type index_CupertinoSliderProps as CupertinoSliderProps, index_CupertinoSlidingSegmentedControl as CupertinoSlidingSegmentedControl, type index_CupertinoSlidingSegmentedControlProps as CupertinoSlidingSegmentedControlProps, index_CupertinoSliverNavigationBar as CupertinoSliverNavigationBar, type index_CupertinoSliverNavigationBarProps as CupertinoSliverNavigationBarProps, index_CupertinoSliverRefreshControl as CupertinoSliverRefreshControl, type index_CupertinoSliverRefreshControlProps as CupertinoSliverRefreshControlProps, index_CupertinoSwitch as CupertinoSwitch, type index_CupertinoSwitchProps as CupertinoSwitchProps, index_CupertinoTabBar as CupertinoTabBar, type index_CupertinoTabBarProps as CupertinoTabBarProps, index_CupertinoTextField as CupertinoTextField, type index_CupertinoTextFieldProps as CupertinoTextFieldProps, index_CupertinoTimerPicker as CupertinoTimerPicker, type index_CupertinoTimerPickerMode as CupertinoTimerPickerMode, type index_CupertinoTimerPickerProps as CupertinoTimerPickerProps, type index_Curve as Curve, index_CustomScrollView as CustomScrollView, type index_CustomScrollViewProps as CustomScrollViewProps, type index_DatePickerDateOrder as DatePickerDateOrder, index_DefaultTabController as DefaultTabController, type index_DefaultTabControllerProps as DefaultTabControllerProps, index_DefaultTextStyle as DefaultTextStyle, type index_DefaultTextStyleProps as DefaultTextStyleProps, type index_DismissDirection as DismissDirection, index_Dismissable as Dismissable, type index_DismissableProps as DismissableProps, index_DottedBorder as DottedBorder, type index_DottedBorderProps as DottedBorderProps, index_DottedLine as DottedLine, type index_DottedLineProps as DottedLineProps, type index_DragDownDetails as DragDownDetails, type index_DragEndDetails as DragEndDetails, type index_DragUpdateDetails as DragUpdateDetails, type index_EdgeInsets as EdgeInsets, type index_EdgeInsetsDirectional as EdgeInsetsDirectional, type index_EventPosition as EventPosition, index_Expanded as Expanded, type index_ExpandedProps as ExpandedProps, type index_FilterQuality as FilterQuality, index_FittedBox as FittedBox, type index_FittedBoxProps as FittedBoxProps, type index_FontStyle as FontStyle, type index_FontWeight as FontWeight, index_GestureDetector as GestureDetector, type index_GestureDetectorProps as GestureDetectorProps, index_Gif as Gif, type index_GifProps as GifProps, type index_GridDelegateWithFixedCrossAxisCount as GridDelegateWithFixedCrossAxisCount, type index_GridDelegateWithMaxCrossAxisExtent as GridDelegateWithMaxCrossAxisExtent, index_GridView as GridView, type index_GridViewCommonProps as GridViewCommonProps, type index_GridViewFixedCrossAxisCountProps as GridViewFixedCrossAxisCountProps, type index_GridViewMaxCrossAxisExtentProps as GridViewMaxCrossAxisExtentProps, type index_GridViewProps as GridViewProps, index_Hero as Hero, type index_HeroProps as HeroProps, index_Icon as Icon, type index_IconProps as IconProps, index_IgnorePointer as IgnorePointer, type index_IgnorePointerProps as IgnorePointerProps, index_Image as Image, type index_ImageByteFormat as ImageByteFormat, type index_ImageFilter as ImageFilter, type index_ImageFilterBlur as ImageFilterBlur, type index_ImageFilterCompose as ImageFilterCompose, type index_ImageFilterDilate as ImageFilterDilate, type index_ImageFilterErode as ImageFilterErode, type index_ImageFilterMaxtrix as ImageFilterMaxtrix, type index_ImageProps as ImageProps, type index_ImageRepeat as ImageRepeat, index_IndexedStack as IndexedStack, type index_IndexedStackProps as IndexedStackProps, index_InkWell as InkWell, type index_InkWellProps as InkWellProps, type index_IntervalCurve as IntervalCurve, index_IntrinsicHeight as IntrinsicHeight, type index_IntrinsicHeightProps as IntrinsicHeightProps, index_IntrinsicWidth as IntrinsicWidth, type index_IntrinsicWidthProps as IntrinsicWidthProps, type index_KeyProps as KeyProps, index_LayerLink as LayerLink, type index_LinearGradient as LinearGradient, index_LinearProgressIndicator as LinearProgressIndicator, type index_LinearProgressIndicatorProps as LinearProgressIndicatorProps, index_ListView as ListView, type index_ListViewProps as ListViewProps, type index_MainAxisAlignment as MainAxisAlignment, type index_MainAxisSize as MainAxisSize, index_Material as Material, type index_MaterialProps as MaterialProps, index_Navigator as Navigator, type index_NavigatorProps as NavigatorProps, type index_NavigatorRef as NavigatorRef, index_NestedScrollView as NestedScrollView, type index_NestedScrollViewProps as NestedScrollViewProps, index_NetworkImage as NetworkImage, type index_NetworkImageProps as NetworkImageProps, type index_NormalCurve as NormalCurve, type index_Offset as Offset, index_Opacity as Opacity, type index_OpacityProps as OpacityProps, type index_OverScrollNotification as OverScrollNotification, index_OverflowBox as OverflowBox, type index_OverflowBoxProps as OverflowBoxProps, index_Overlay as Overlay, type index_OverlayProps as OverlayProps, type index_OverlayVisibilityMode as OverlayVisibilityMode, index_Padding as Padding, type index_PaddingProps as PaddingProps, index_PageView as PageView, type index_PageViewProps as PageViewProps, type index_PaintRect as PaintRect, type index_PaintSize as PaintSize, index_PopScope as PopScope, type index_PopScopeProps as PopScopeProps, index_Positioned as Positioned, type index_PositionedProps as PositionedProps, index_QrImage as QrImage, type index_QrImageProps as QrImageProps, type index_RadialGradient as RadialGradient, type index_RefProps as RefProps, index_RefreshIndicator as RefreshIndicator, type index_RefreshIndicatorProps as RefreshIndicatorProps, type index_RelativeRect as RelativeRect, index_ReorderableListView as ReorderableListView, type index_ReorderableListViewProps as ReorderableListViewProps, index_RepaintBoundary as RepaintBoundary, type index_RepaintBoundaryProps as RepaintBoundaryProps, type index_RepaintBoundaryRef as RepaintBoundaryRef, index_RichText as RichText, type index_RichTextProps as RichTextProps, index_RotatedBox as RotatedBox, type index_RotatedBoxProps as RotatedBoxProps, index_Row as Row, type index_RowProps as RowProps, index_SafeArea as SafeArea, type index_SafeAreaProps as SafeAreaProps, type index_ScaleEndDetails as ScaleEndDetails, type index_ScaleStartDetails as ScaleStartDetails, type index_ScaleUpdateDetails as ScaleUpdateDetails, type index_ScrollEndNotification as ScrollEndNotification, type index_ScrollMetrics as ScrollMetrics, type index_ScrollNotification as ScrollNotification, index_ScrollNotificationListener as ScrollNotificationListener, type index_ScrollNotificationListenerProps as ScrollNotificationListenerProps, type index_ScrollOrientation as ScrollOrientation, type index_ScrollPhysics as ScrollPhysics, type index_ScrollStartNotification as ScrollStartNotification, type index_ScrollUpdateNotification as ScrollUpdateNotification, type index_ScrollViewKeyboardDismissBehavior as ScrollViewKeyboardDismissBehavior, index_Scrollbar as Scrollbar, type index_ScrollbarProps as ScrollbarProps, index_SingleChildScrollView as SingleChildScrollView, type index_SingleChildScrollViewProps as SingleChildScrollViewProps, index_SizedBox as SizedBox, type index_SizedBoxProps as SizedBoxProps, index_SliverFillRemaining as SliverFillRemaining, type index_SliverFillRemainingProps as SliverFillRemainingProps, index_SliverFixedHeightPersistentHeader as SliverFixedHeightPersistentHeader, type index_SliverFixedHeightPersistentHeaderProps as SliverFixedHeightPersistentHeaderProps, index_SliverToBoxAdapter as SliverToBoxAdapter, type index_SliverToBoxAdapterProps as SliverToBoxAdapterProps, index_Spacer as Spacer, type index_SpacerProps as SpacerProps, index_Stack as Stack, type index_StackFit as StackFit, type index_StackProps as StackProps, index_StickyHeader as StickyHeader, type index_StickyHeaderProps as StickyHeaderProps, index_StringSvg as StringSvg, type index_StringSvgProps as StringSvgProps, type index_StrokeCap as StrokeCap, type index_StrutStyle as StrutStyle, index_Svg as Svg, type index_SvgProps as SvgProps, index_Swiper as Swiper, index_SwiperPagination as SwiperPagination, type index_SwiperPaginationProps as SwiperPaginationProps, type index_SwiperProps as SwiperProps, index_Switch as Switch, type index_SwitchProps as SwitchProps, type index_TabAlignment as TabAlignment, index_TabBar as TabBar, type index_TabBarIndicatorSize as TabBarIndicatorSize, type index_TabBarProps as TabBarProps, index_TabBarView as TabBarView, type index_TabBarViewProps as TabBarViewProps, index_TabController as TabController, index_TabControllerConsumer as TabControllerConsumer, index_TabControllerContext as TabControllerContext, type index_TabControllerProps as TabControllerProps, index_TabControllerProvider as TabControllerProvider, type index_TabControllerRef as TabControllerRef, type index_TabControllerRenderNode as TabControllerRenderNode, type index_TapDownDetails as TapDownDetails, type index_TapUpDetails as TapUpDetails, index_Text as Text, type index_TextAlign as TextAlign, type index_TextBaseLine as TextBaseLine, type index_TextDecoration as TextDecoration, type index_TextDecorationStyle as TextDecorationStyle, type index_TextDirection as TextDirection, index_TextField as TextField, type index_TextFieldProps as TextFieldProps, type index_TextHeightBehavior as TextHeightBehavior, type index_TextInputType as TextInputType, type index_TextLeadingDistribution as TextLeadingDistribution, type index_TextOverflow as TextOverflow, type index_TextProps as TextProps, index_TextSpan as TextSpan, type index_TextSpanProps as TextSpanProps, type index_TextStyle as TextStyle, type index_TextWidthBasis as TextWidthBasis, index_Ticker as Ticker, index_TickerManager as TickerManager, index_TickerManagerConsumer as TickerManagerConsumer, index_TickerManagerProvider as TickerManagerProvider, type index_TickerManagerProviderProps as TickerManagerProviderProps, type index_TickerManagerRef as TickerManagerRef, type index_TileMode as TileMode, index_TransformRotate as TransformRotate, type index_TransformRotateProps as TransformRotateProps, index_TransformScale as TransformScale, type index_TransformScaleProps as TransformScaleProps, index_TransformTranslate as TransformTranslate, type index_TransformTranslateProps as TransformTranslateProps, type index_Tween as Tween, type index_TweenSequence as TweenSequence, type index_TweenSequenceConstantItem as TweenSequenceConstantItem, type index_TweenSequenceItem as TweenSequenceItem, type index_TweenType as TweenType, index_UnconstrainedBox as UnconstrainedBox, type index_UnconstrainedBoxProps as UnconstrainedBoxProps, type index_UserScrollNotification as UserScrollNotification, type index_Velocity as Velocity, type index_VerticalDirection as VerticalDirection, index_WebView as WebView, index_WebViewController as WebViewController, type index_WebViewProps as WebViewProps, type index_WebViewSettings as WebViewSettings, index_Wrap as Wrap, type index_WrapAlignment as WrapAlignment, type index_WrapCrossAlignment as WrapCrossAlignment, type index_WrapProps as WrapProps, index_useAnimationController as useAnimationController, index_useLayerLink as useLayerLink, index_useNavigator as useNavigator, index_useTabController as useTabController, index_useTickerManager as useTickerManager };
|
|
2792
|
+
type SystemUIOverlayStyle = {
|
|
2793
|
+
systemNavigationBarColor?: Color;
|
|
2794
|
+
systemNavigationBarDividerColor?: Color;
|
|
2795
|
+
statusBarColor?: Color;
|
|
2796
|
+
systemNavigationBarIconBrightness?: Brightness;
|
|
2797
|
+
statusBarBrightness?: Brightness;
|
|
2798
|
+
statusBarIconBrightness?: Brightness;
|
|
2799
|
+
systemNavigationBarContrastEnforced?: boolean;
|
|
2800
|
+
systemStatusBarContrastEnforced?: boolean;
|
|
2801
|
+
};
|
|
2802
|
+
declare function setSystemUIOverlayStyle(brightness: Brightness): void;
|
|
2803
|
+
declare function setCustomSystemUIOverlayStyle(style: SystemUIOverlayStyle): void;
|
|
2804
|
+
|
|
2805
|
+
declare function setThemeMode(themeMode: ThemeMode): void;
|
|
2806
|
+
|
|
2807
|
+
declare const Device: {
|
|
2808
|
+
readonly isIOS: boolean;
|
|
2809
|
+
readonly isAndroid: boolean;
|
|
2810
|
+
readonly brand: string;
|
|
2811
|
+
readonly model: string;
|
|
2812
|
+
readonly locale: string;
|
|
2813
|
+
readonly systemLocale: string;
|
|
2814
|
+
readonly systemLocales: string[];
|
|
2815
|
+
readonly systemLanguageTag: string;
|
|
2816
|
+
readonly sysmtemLanguageCode: string;
|
|
2817
|
+
readonly systemCountryCode: string | undefined;
|
|
2818
|
+
readonly systemScriptCode: string | undefined;
|
|
2819
|
+
hapticFeedback: typeof hapticFeedback;
|
|
2820
|
+
getBatteryLevel: typeof getBatteryLevel;
|
|
2821
|
+
getBatteryState: typeof getBatteryState;
|
|
2822
|
+
onBatteryStateChanged: typeof onBatteryStateChanged;
|
|
2823
|
+
setLocale: typeof setLocale;
|
|
2824
|
+
setThemeMode: typeof setThemeMode;
|
|
2825
|
+
setPreferredOrientation: typeof setPreferredOrientation;
|
|
2826
|
+
setSystemUIOverlayStyle: typeof setSystemUIOverlayStyle;
|
|
2827
|
+
setCustomSystemUIOverlayStyle: typeof setCustomSystemUIOverlayStyle;
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
/**
|
|
2831
|
+
* Share base64 image
|
|
2832
|
+
* @param options
|
|
2833
|
+
* @param options.image base64 format, e.g. data:image/png;base64,xxxxx...
|
|
2834
|
+
* @param options.text Share text content
|
|
2835
|
+
* @param options.subject Share subject
|
|
2836
|
+
*/
|
|
2837
|
+
declare function shareBase64Image(options: {
|
|
2838
|
+
image: string;
|
|
2839
|
+
text?: string;
|
|
2840
|
+
subject?: string;
|
|
2841
|
+
}): Promise<{
|
|
2842
|
+
status: ShareResultStatus;
|
|
2843
|
+
}>;
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* Share files
|
|
2847
|
+
* @param options
|
|
2848
|
+
* @param options.files Files path
|
|
2849
|
+
* @param options.text Share text content
|
|
2850
|
+
* @param options.subject Share subject
|
|
2851
|
+
*/
|
|
2852
|
+
declare function shareFiles(options: {
|
|
2853
|
+
files: string[];
|
|
2854
|
+
text: string;
|
|
2855
|
+
subject?: string;
|
|
2856
|
+
}): Promise<{
|
|
2857
|
+
status: ShareResultStatus;
|
|
2858
|
+
}>;
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* Share text
|
|
2862
|
+
* @param options
|
|
2863
|
+
* @param options.text Share text content
|
|
2864
|
+
* @param options.subject Share subject
|
|
2865
|
+
*/
|
|
2866
|
+
declare function shareText(options: {
|
|
2867
|
+
text: string;
|
|
2868
|
+
subject?: string;
|
|
2869
|
+
}): Promise<{
|
|
2870
|
+
status: ShareResultStatus;
|
|
2871
|
+
}>;
|
|
2872
|
+
|
|
2873
|
+
declare const Share: {
|
|
2874
|
+
shareText: typeof shareText;
|
|
2875
|
+
shareBase64Image: typeof shareBase64Image;
|
|
2876
|
+
shareFiles: typeof shareFiles;
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Copy text to clipboard.
|
|
2881
|
+
* @param text Text content
|
|
2882
|
+
* @returns
|
|
2883
|
+
*/
|
|
2884
|
+
declare function copyText(text: string): Promise<boolean>;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* Get text form clipboard.
|
|
2888
|
+
* @returns
|
|
2889
|
+
*/
|
|
2890
|
+
declare function getText(): Promise<string | null>;
|
|
2891
|
+
|
|
2892
|
+
declare const Clipboard: {
|
|
2893
|
+
copyText: typeof copyText;
|
|
2894
|
+
getText: typeof getText;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* 关闭全屏loading
|
|
2899
|
+
*/
|
|
2900
|
+
declare function hideLoading(): void;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* 打开Alert弹窗
|
|
2904
|
+
* @param options
|
|
2905
|
+
* @param options.content 弹窗内容
|
|
2906
|
+
* @param options.title 弹窗标题(可选)
|
|
2907
|
+
* @param options.buttonLabel 按钮文案(可选)
|
|
2908
|
+
*/
|
|
2909
|
+
declare function showAlert(options: {
|
|
2910
|
+
content: string;
|
|
2911
|
+
title?: string;
|
|
2912
|
+
buttonLabel?: string;
|
|
2913
|
+
}): Promise<void>;
|
|
2914
|
+
|
|
2915
|
+
type VstarBottomSheetOptions = {
|
|
2916
|
+
/** 标题 */
|
|
2917
|
+
title?: string;
|
|
2918
|
+
/** 是否显示取消按钮,默认不显示 */
|
|
2919
|
+
cancelButton?: boolean;
|
|
2920
|
+
/** 是否可往下拖动关闭,默认可以 */
|
|
2921
|
+
dragDownDissmisible?: boolean;
|
|
2922
|
+
/** action选项 */
|
|
2923
|
+
actions: {
|
|
2924
|
+
/** 文本内容 */
|
|
2925
|
+
label: string;
|
|
2926
|
+
/** 是否选中 */
|
|
2927
|
+
selected?: boolean;
|
|
2928
|
+
}[];
|
|
2929
|
+
};
|
|
2930
|
+
/**
|
|
2931
|
+
* 展示bottom sheet 弹窗,类似iOS的选项功能
|
|
2932
|
+
* @param options
|
|
2933
|
+
* @param options.title 标题(可选)
|
|
2934
|
+
* @param options.cancelButton 是否展示取消按钮,默认展示(可选)
|
|
2935
|
+
* @param options.dragDownDissmisible 是否可以下拉关闭弹窗,默认可以(可选)
|
|
2936
|
+
* @param options.actions 选项列表
|
|
2937
|
+
* @param options.actions.label 选项文本
|
|
2938
|
+
* @param options.actions.selected 是否选中,设置为true改选项展示选中状态(可选)
|
|
2939
|
+
* @returns 点击某个选项后返回其下标,取消的话返回null
|
|
2940
|
+
*/
|
|
2941
|
+
declare function showBottomSheet({ title, cancelButton, dragDownDissmisible, actions, }: VstarBottomSheetOptions): Promise<number | null>;
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* 展示Confirm弹窗
|
|
2945
|
+
* @param options
|
|
2946
|
+
* @param options.content 提示内容
|
|
2947
|
+
* @param options.title 提示标题(可选)
|
|
2948
|
+
* @param options.cancelLabel 取消按钮文案(可选)
|
|
2949
|
+
* @param options.confirmLabel 确认按钮文案(可选)
|
|
2950
|
+
* @returns 返回true或false的promise
|
|
2951
|
+
*/
|
|
2952
|
+
declare function showConfirm(options: {
|
|
2953
|
+
content: string;
|
|
2954
|
+
title?: string;
|
|
2955
|
+
cancelLabel?: string;
|
|
2956
|
+
confirmLabel?: string;
|
|
2957
|
+
}): Promise<boolean>;
|
|
2958
|
+
|
|
2959
|
+
declare function showLoading(options: {
|
|
2960
|
+
message?: string;
|
|
2961
|
+
color?: string;
|
|
2962
|
+
}): void;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* 展示提醒弹窗
|
|
2966
|
+
* @param options
|
|
2967
|
+
* @param options.title 标题
|
|
2968
|
+
* @param options.obscureText 是否使用晦涩文本模式,用于密码之类(可选)
|
|
2969
|
+
* @param options.hintText 提示placeholder文案(可选)
|
|
2970
|
+
* @param options.cancelLabel 取消按钮文案(可选)
|
|
2971
|
+
* @param options.confirmLabel 确认按钮文案(可选)
|
|
2972
|
+
* @returns 用户输入确认后返回字符串,用户取消后返回null
|
|
2973
|
+
*/
|
|
2974
|
+
declare function showPrompt(options: {
|
|
2975
|
+
title: string;
|
|
2976
|
+
obscureText?: boolean;
|
|
2977
|
+
hintText?: string;
|
|
2978
|
+
cancelLabel?: string;
|
|
2979
|
+
confirmLabel?: string;
|
|
2980
|
+
}): Promise<string | null>;
|
|
2981
|
+
|
|
2982
|
+
/**
|
|
2983
|
+
* 展示Toast弹窗
|
|
2984
|
+
* @param options
|
|
2985
|
+
* @param options.content toast消息
|
|
2986
|
+
* @param options.duration 展示时间(可选),单位毫秒,默认2000毫秒(2秒)
|
|
2987
|
+
*/
|
|
2988
|
+
declare function showToast(options: {
|
|
2989
|
+
content: string;
|
|
2990
|
+
duration?: number;
|
|
2991
|
+
}): Promise<void>;
|
|
2992
|
+
|
|
2993
|
+
declare const Dialog: {
|
|
2994
|
+
showLoading: typeof showLoading;
|
|
2995
|
+
hideLoading: typeof hideLoading;
|
|
2996
|
+
showAlert: typeof showAlert;
|
|
2997
|
+
showPrompt: typeof showPrompt;
|
|
2998
|
+
showConfirm: typeof showConfirm;
|
|
2999
|
+
showToast: typeof showToast;
|
|
3000
|
+
showBottomSheet: typeof showBottomSheet;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
type PickFileOptions = {
|
|
3004
|
+
maxWidth?: number;
|
|
3005
|
+
maxHeight?: number;
|
|
3006
|
+
/**
|
|
3007
|
+
* 1 - 100
|
|
3008
|
+
*/
|
|
3009
|
+
imageQuality?: number;
|
|
3010
|
+
requestFullMetadata?: boolean;
|
|
3011
|
+
};
|
|
3012
|
+
declare function pickImage(options?: PickFileOptions): Promise<string | null>;
|
|
3013
|
+
declare function pickMultipleImage(options?: PickFileOptions): Promise<string[]>;
|
|
3014
|
+
|
|
3015
|
+
declare function pickMedia(options?: PickFileOptions): Promise<string | null>;
|
|
3016
|
+
declare function pickMultipleMedia(options?: PickFileOptions): Promise<string[]>;
|
|
3017
|
+
|
|
3018
|
+
type TakePhotoOptions = PickFileOptions & {
|
|
3019
|
+
preferredCameraDevice?: 'front' | 'rear';
|
|
3020
|
+
};
|
|
3021
|
+
declare function takePhoto(options?: TakePhotoOptions): Promise<string | null>;
|
|
3022
|
+
|
|
3023
|
+
declare const ImageGallery: {
|
|
3024
|
+
pickImage: typeof pickImage;
|
|
3025
|
+
pickMultipleImage: typeof pickMultipleImage;
|
|
3026
|
+
pickMedia: typeof pickMedia;
|
|
3027
|
+
pickMultipleMedia: typeof pickMultipleMedia;
|
|
3028
|
+
takePhoto: typeof takePhoto;
|
|
3029
|
+
};
|
|
3030
|
+
|
|
3031
|
+
declare const ImageSaver: {
|
|
3032
|
+
saveBytesImage(options: {
|
|
3033
|
+
image: ArrayBuffer;
|
|
3034
|
+
quality?: number;
|
|
3035
|
+
name?: string;
|
|
3036
|
+
}): Promise<boolean>;
|
|
3037
|
+
saveBase64Image(options: {
|
|
3038
|
+
image: string;
|
|
3039
|
+
quality?: number;
|
|
3040
|
+
name?: string;
|
|
3041
|
+
}): Promise<boolean>;
|
|
3042
|
+
saveNetworkImage(options: {
|
|
3043
|
+
url: string;
|
|
3044
|
+
quality?: number;
|
|
3045
|
+
name?: string;
|
|
3046
|
+
}): Promise<boolean>;
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
declare function set<T>(key: string, value: T): Promise<boolean>;
|
|
3050
|
+
declare function get<T>(key: string): Promise<T | null>;
|
|
3051
|
+
declare function remove(key: string): Promise<boolean>;
|
|
3052
|
+
declare const Storage: {
|
|
3053
|
+
set: typeof set;
|
|
3054
|
+
get: typeof get;
|
|
3055
|
+
remove: typeof remove;
|
|
3056
|
+
};
|
|
3057
|
+
|
|
3058
|
+
type PermissionStatus = {
|
|
3059
|
+
isDenied: boolean;
|
|
3060
|
+
isGranted: boolean;
|
|
3061
|
+
isLimited: boolean;
|
|
3062
|
+
isPermanentlyDenied: boolean;
|
|
3063
|
+
isProvisional: boolean;
|
|
3064
|
+
isRestricted: boolean;
|
|
3065
|
+
};
|
|
3066
|
+
type PermissionType = 'accessMediaLocation' | 'accessNotificationPolicy' | 'activityRecognition' | 'appTrackingTransparency' | 'audio' | 'bluetoothAdvertise' | 'bluetoothConnect' | 'bluetoothScan' | 'calendarFullAccess' | 'calendarWriteOnly' | 'camera' | 'contacts' | 'criticalAlerts' | 'ignoreBatteryOptimizations' | 'manageExternalStorage' | 'mediaLibrary' | 'microphone' | 'nearbyWifiDevices' | 'notification' | 'photos' | 'photosAddOnly' | 'reminders' | 'requestInstallPackages' | 'scheduleExactAlarm' | 'sensors' | 'sensorsAlways' | 'sms' | 'speech' | 'storage' | 'systemAlertWindow';
|
|
3067
|
+
declare function getPermissionStatus(type: PermissionType): Promise<PermissionStatus>;
|
|
3068
|
+
declare function requestPermission(type: PermissionType): Promise<PermissionStatus>;
|
|
3069
|
+
|
|
3070
|
+
declare function launchUrl(url: string): Promise<boolean>;
|
|
3071
|
+
|
|
3072
|
+
declare function openScriptingApp<T>(options: {
|
|
3073
|
+
url: string;
|
|
3074
|
+
params?: {
|
|
3075
|
+
[key: string]: any;
|
|
3076
|
+
};
|
|
3077
|
+
}): Promise<T | null>;
|
|
3078
|
+
|
|
3079
|
+
declare const Navigation: {
|
|
3080
|
+
launchUrl: typeof launchUrl;
|
|
3081
|
+
openScriptingApp: typeof openScriptingApp;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
/**
|
|
3085
|
+
* 取消请求的token
|
|
3086
|
+
*
|
|
3087
|
+
* 同一个token可以用于多个请求
|
|
3088
|
+
*/
|
|
3089
|
+
declare class CancelToken {
|
|
3090
|
+
readonly token: string;
|
|
3091
|
+
private _isCancelled;
|
|
3092
|
+
get isCancelled(): boolean;
|
|
3093
|
+
/**
|
|
3094
|
+
* 调用cancel方法后所有请求都会被取消
|
|
3095
|
+
*/
|
|
3096
|
+
cancel(): void;
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* 网络请求 CancelToken
|
|
3100
|
+
*/
|
|
3101
|
+
declare function useCancelToken(): {
|
|
3102
|
+
get: () => CancelToken | undefined;
|
|
3103
|
+
create: () => CancelToken;
|
|
3104
|
+
};
|
|
3105
|
+
|
|
3106
|
+
declare function loadBytes(options: {
|
|
3107
|
+
url: string;
|
|
3108
|
+
noCache?: boolean;
|
|
3109
|
+
timeout?: number;
|
|
3110
|
+
debugLabel?: string;
|
|
3111
|
+
headers?: {
|
|
3112
|
+
[key: string]: any;
|
|
3113
|
+
};
|
|
3114
|
+
cancelToken?: CancelToken;
|
|
3115
|
+
}): Promise<number[] | null>;
|
|
3116
|
+
|
|
3117
|
+
declare function loadFont(options: {
|
|
3118
|
+
family: string;
|
|
3119
|
+
urls: string[];
|
|
3120
|
+
type?: 'otf' | 'ttf';
|
|
3121
|
+
}): Promise<boolean>;
|
|
3122
|
+
|
|
3123
|
+
declare function loadJson<T>(options: {
|
|
3124
|
+
url: string;
|
|
3125
|
+
noCache?: boolean;
|
|
3126
|
+
timeout?: number;
|
|
3127
|
+
debugLabel?: string;
|
|
3128
|
+
headers?: {
|
|
3129
|
+
[key: string]: any;
|
|
3130
|
+
};
|
|
3131
|
+
queryParameters?: {
|
|
3132
|
+
[key: string]: any;
|
|
3133
|
+
};
|
|
3134
|
+
cancelToken?: CancelToken;
|
|
3135
|
+
}): Promise<T | null>;
|
|
3136
|
+
|
|
3137
|
+
declare function loadString<T>(options: {
|
|
3138
|
+
url: string;
|
|
3139
|
+
noCache?: boolean;
|
|
3140
|
+
timeout?: number;
|
|
3141
|
+
debugLabel?: string;
|
|
3142
|
+
headers?: {
|
|
3143
|
+
[key: string]: any;
|
|
3144
|
+
};
|
|
3145
|
+
queryParameters?: {
|
|
3146
|
+
[key: string]: any;
|
|
3147
|
+
};
|
|
3148
|
+
cancelToken?: CancelToken;
|
|
3149
|
+
}): Promise<T | null>;
|
|
3150
|
+
|
|
3151
|
+
type RequestOptions = {
|
|
3152
|
+
url: string;
|
|
3153
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'PATCH';
|
|
3154
|
+
data?: any;
|
|
3155
|
+
isFormData?: boolean;
|
|
3156
|
+
contentType?: string;
|
|
3157
|
+
responseType?: 'json' | 'plain' | 'bytes';
|
|
3158
|
+
sendTimeout?: number;
|
|
3159
|
+
receiveTimeout?: number;
|
|
3160
|
+
connectTimeout?: number;
|
|
3161
|
+
cancelToken?: CancelToken;
|
|
3162
|
+
queryParameters?: {
|
|
3163
|
+
[key: string]: any;
|
|
3164
|
+
};
|
|
3165
|
+
preserveHeaderCase?: boolean;
|
|
3166
|
+
debugLabel?: string;
|
|
3167
|
+
};
|
|
3168
|
+
declare function fetch<T>(options: RequestOptions): Promise<T>;
|
|
3169
|
+
|
|
3170
|
+
type MultipartFileOptions = {
|
|
3171
|
+
filename?: string;
|
|
3172
|
+
headers?: {
|
|
3173
|
+
[key: string]: string[];
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
declare class MultipartFile {
|
|
3177
|
+
type: string;
|
|
3178
|
+
value: string | number[];
|
|
3179
|
+
filename?: string | undefined;
|
|
3180
|
+
headers?: {
|
|
3181
|
+
[key: string]: string[];
|
|
3182
|
+
} | undefined;
|
|
3183
|
+
static fromBytes(bytes: number[], options?: MultipartFileOptions): MultipartFile;
|
|
3184
|
+
static fromFile(filePath: string, options?: MultipartFileOptions): MultipartFile;
|
|
3185
|
+
static fromString(string: string, options?: MultipartFileOptions): MultipartFile;
|
|
3186
|
+
constructor(type: string, value: string | number[], filename?: string | undefined, headers?: {
|
|
3187
|
+
[key: string]: string[];
|
|
3188
|
+
} | undefined);
|
|
3189
|
+
toJson(): {
|
|
3190
|
+
type: string;
|
|
3191
|
+
value: string | number[];
|
|
3192
|
+
filename: string | undefined;
|
|
3193
|
+
headers: {
|
|
3194
|
+
[key: string]: string[];
|
|
3195
|
+
} | undefined;
|
|
3196
|
+
};
|
|
3197
|
+
}
|
|
3198
|
+
declare class FormData {
|
|
3199
|
+
private _fields;
|
|
3200
|
+
constructor();
|
|
3201
|
+
static fromMap(map: {
|
|
3202
|
+
[name: string]: string | string[] | MultipartFile | MultipartFile[];
|
|
3203
|
+
}): FormData;
|
|
3204
|
+
static getValue(formData: FormData): {
|
|
3205
|
+
[name: string]: any;
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
/**
|
|
3209
|
+
* Example:
|
|
3210
|
+
* ```ts
|
|
3211
|
+
* postFormData({
|
|
3212
|
+
* url: 'https://example.com/api/upload-avatar',
|
|
3213
|
+
* data: FormData.fromMap({
|
|
3214
|
+
* file: MultipartFile.fromFile('/xx/file/path', {
|
|
3215
|
+
* filename: 'avatar.png'
|
|
3216
|
+
* }),
|
|
3217
|
+
* destDir: '/avatar'
|
|
3218
|
+
* })
|
|
3219
|
+
* })
|
|
3220
|
+
* ```
|
|
3221
|
+
*/
|
|
3222
|
+
declare function postFormData<T>(options: RequestOptions & {
|
|
3223
|
+
data: FormData;
|
|
3224
|
+
}): Promise<T>;
|
|
3225
|
+
|
|
3226
|
+
declare const Request: {
|
|
3227
|
+
loadString: typeof loadString;
|
|
3228
|
+
loadJson: typeof loadJson;
|
|
3229
|
+
loadBytes: typeof loadBytes;
|
|
3230
|
+
loadFont: typeof loadFont;
|
|
3231
|
+
postFormData: typeof postFormData;
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
type SocketIOOptions = {};
|
|
3235
|
+
|
|
3236
|
+
declare class SocketIO {
|
|
3237
|
+
private key;
|
|
3238
|
+
url: string;
|
|
3239
|
+
private _eventMap;
|
|
3240
|
+
constructor(key: string, url: string);
|
|
3241
|
+
connect(): void;
|
|
3242
|
+
isConnected(): Promise<boolean | null>;
|
|
3243
|
+
on<T>(event: string, callback: (data: T) => void): void;
|
|
3244
|
+
once<T>(event: string, callback: (data: T) => void): void;
|
|
3245
|
+
off<T>(event: string, callback: (data: T) => void): void;
|
|
3246
|
+
emit(event: string, data?: any): void;
|
|
3247
|
+
emitWithAck(event: string, data?: any): Promise<unknown>;
|
|
3248
|
+
close(): void;
|
|
3249
|
+
dispose(): void;
|
|
3250
|
+
static open(url: string, options?: SocketIOOptions): Promise<SocketIO>;
|
|
3458
3251
|
}
|
|
3459
3252
|
|
|
3460
3253
|
declare global {
|
|
@@ -3474,5 +3267,5 @@ declare global {
|
|
|
3474
3267
|
}
|
|
3475
3268
|
}
|
|
3476
3269
|
|
|
3477
|
-
export { type AixsDirection, type Alignment, type AppLifeCycleState, type Axis, type BlendMode, type BlurStyle, type BorderRadius, type BorderSide, type BoxConstraints, type BoxDecoration, type BoxFit, type BoxShadow, type Brightness, CancelToken, ChildrenRule, type Clip, Clipboard, type Color, type ComponentCallback, type ComponentEffect, type ComponentMemo, type ComponentProps, type Consumer, type ConsumerProps, type Context, type CrossAxisAlignment, type CupertinoDialogRoute, type CupertinoModalPopupRoute, type CupertinoPageRoute, type Curve, Device, Dialog, type DialogRoute, type DismissDirection, type Dispatch, type DragDownDetails, type DragEndDetails, type DragUpdateDetails, type EdgeInsets, type EdgeInsetsDirectional, type EffectCallback, type EffectDestructor, type EventPosition,
|
|
3270
|
+
export { AbsorbPointer, type AbsorbPointerProps, type AixsDirection, type Alignment, AnimatedAlign, type AnimatedAlignProps, AnimatedContainer, type AnimatedContainerProps, AnimatedOpacity, type AnimatedOpacityProps, AnimatedPadding, type AnimatedPaddingProps, AnimatedPositioned, type AnimatedPositionedProps, AnimatedRotation, type AnimatedRotationProps, AnimatedScale, type AnimatedScaleProps, AnimatedSize, type AnimatedSizeProps, AnimatedSlide, type AnimatedSlideProps, type AnimationControllerIntialOptions, type AnimationInitalOptions, type AnimationStatus, type AnimationStatusListener, type AnimationValue, AppEvent, type AppLifeCycleState, AspectRatio, type AspectRatioProps, AutoSizeText, type AutoSizeTextProps, type Axis, BackdropFilter, type BackdropFilterProps, Baseline, type BaselineProps, BatteryState, type BlendMode, type BlurStyle, type BorderRadius, type BorderSide, BottomNavigationBarItem, type BottomNavigationBarItemProps, type BoxConstraints, type BoxDecoration, type BoxFit, type BoxShadow, type Brightness, CSSFilter, type CSSFilterMatrix, CSSFilterPresets, type CSSFilterPresetsEffect, type CSSFilterPresetsProps, type CSSFilterProps, CancelToken, Center, type CenterProps, ChildrenRule, CircularProgressIndicator, type CircularProgressIndicatorProps, type Clip, ClipOval, type ClipOvalProps, ClipRRect, type ClipRRectProps, ClipRect, type ClipRectProps, Clipboard, type Color, Column, type ColumnProps, type ComponentCallback, type ComponentEffect, type ComponentMemo, type ComponentProps, CompositedTransformFollower, type CompositedTransformFollowerProps, CompositedTransformTarget, type CompositedTransformTargetProps, ConstrainedBox, type ConstrainedBoxProps, type Consumer, type ConsumerProps, Container, type ContainerProps, type Context, type CrossAxisAlignment, CupertinoActionSheet, CupertinoActionSheetAction, type CupertinoActionSheetActionProps, type CupertinoActionSheetProps, CupertinoActivityIndicator, type CupertinoActivityIndicatorProps, CupertinoAlertDialog, type CupertinoAlertDialogProps, CupertinoButton, type CupertinoButtonProps, CupertinoColorsWithBrightness, CupertinoContextMenu, CupertinoContextMenuAction, type CupertinoContextMenuActionProps, type CupertinoContextMenuProps, CupertinoDatePicker, type CupertinoDatePickerMode, type CupertinoDatePickerProps, CupertinoDialogAction, type CupertinoDialogActionProps, type CupertinoDialogRoute, CupertinoFormRow, type CupertinoFormRowProps, CupertinoFormSection, type CupertinoFormSectionProps, type CupertinoIcons, CupertinoListSection, type CupertinoListSectionProps, CupertinoListTile, CupertinoListTileChevron, type CupertinoListTileProps, type CupertinoModalPopupRoute, CupertinoNavigationBar, CupertinoNavigationBarBackButton, type CupertinoNavigationBarBackButtonProps, type CupertinoNavigationBarProps, type CupertinoPageRoute, CupertinoPageScaffold, type CupertinoPageScaffoldProps, CupertinoPicker, CupertinoPickerDefaultSelectionOverlay, type CupertinoPickerDefaultSelectionOverlayProps, type CupertinoPickerProps, CupertinoScrollerBar, type CupertinoScrollerBarProps, CupertinoSearchTextField, type CupertinoSearchTextFieldProps, CupertinoSegmentedControl, type CupertinoSegmentedControlProps, CupertinoSlider, type CupertinoSliderProps, CupertinoSlidingSegmentedControl, type CupertinoSlidingSegmentedControlProps, CupertinoSliverNavigationBar, type CupertinoSliverNavigationBarProps, CupertinoSliverRefreshControl, type CupertinoSliverRefreshControlProps, CupertinoSwitch, type CupertinoSwitchProps, CupertinoTabBar, type CupertinoTabBarProps, CupertinoTextField, type CupertinoTextFieldProps, CupertinoTimerPicker, type CupertinoTimerPickerMode, type CupertinoTimerPickerProps, type Curve, CustomScrollView, type CustomScrollViewProps, type DatePickerDateOrder, DefaultTabController, type DefaultTabControllerProps, DefaultTextStyle, type DefaultTextStyleProps, Device, type DeviceOrientation, Dialog, type DialogRoute, type DismissDirection, Dismissable, type DismissableProps, type Dispatch, DottedBorder, type DottedBorderProps, DottedLine, type DottedLineProps, type DragDownDetails, type DragEndDetails, type DragUpdateDetails, type EdgeInsets, type EdgeInsetsDirectional, type EffectCallback, type EffectDestructor, type EventPosition, Expanded, type ExpandedProps, type FilterQuality, FittedBox, type FittedBoxProps, type FontStyle, type FontWeight, FormData, type FunctionComponent, GestureDetector, type GestureDetectorProps, Gif, type GifProps, type GridDelegateWithFixedCrossAxisCount, type GridDelegateWithMaxCrossAxisExtent, GridView, type GridViewCommonProps, type GridViewFixedCrossAxisCountProps, type GridViewMaxCrossAxisExtentProps, type GridViewProps, Hero, type HeroProps, Icon, type IconProps, IgnorePointer, type IgnorePointerProps, Image, type ImageByteFormat, type ImageFilter, type ImageFilterBlur, type ImageFilterCompose, type ImageFilterDilate, type ImageFilterErode, type ImageFilterMaxtrix, ImageGallery, type ImageProps, type ImageRepeat, ImageSaver, type IndexRouteObject, IndexedStack, type IndexedStackProps, InkWell, type InkWellProps, type InternalWidgetRender, type IntervalCurve, IntrinsicHeight, type IntrinsicHeightProps, IntrinsicWidth, type IntrinsicWidthProps, type KeyProps, LayerLink, type LinearGradient, LinearProgressIndicator, type LinearProgressIndicatorProps, ListView, type ListViewProps, type LocaleState, type MainAxisAlignment, type MainAxisSize, Material, type MaterialPageRoute, type MaterialProps, type MediaQueryData, type ModalBottomSheetRoute, MultipartFile, type MutableRefObject, Navigation, Navigator, type NavigatorProps, type NavigatorRef, NestedScrollView, type NestedScrollViewProps, NetworkImage, type NetworkImageProps, type NormalCurve, type NormalRouteObject, type Offset, Opacity, type OpacityProps, type Orientation, type OtherwiseRouteObject, type OverScrollNotification, OverflowBox, type OverflowBoxProps, Overlay, type OverlayProps, type OverlayVisibilityMode, Padding, type PaddingProps, type PageInfo, type PageParamsUpdateEvent, type PagePopEvent, type PagePopResultEvent, type PagePushEvent, type PageRoute, PageView, type PageViewProps, type PaintRect, type PaintSize, type PermissionStatus, type PermissionType, PopScope, type PopScopeProps, Positioned, type PositionedProps, type Provider, type ProviderProps, type PushNamedRouteOptions, type PushRouteOptions, QrImage, type QrImageProps, type RadialGradient, type Reducer, type ReducerAction, type ReducerState, type RefObject, type RefProps, RefreshIndicator, type RefreshIndicatorProps, type RelativeRect, type RenderNode, type RenderObject, type RenderObjectShowOnScreenOptions, ReorderableListView, type ReorderableListViewProps, RepaintBoundary, type RepaintBoundaryProps, type RepaintBoundaryRef, Request, type RequestOptions, RichText, type RichTextProps, RotatedBox, type RotatedBoxProps, type RouteObject, type RouteParams, Router, RouterProvider, Row, type RowProps, SafeArea, type SafeAreaProps, type ScaleEndDetails, type ScaleStartDetails, type ScaleUpdateDetails, type ScriptingDeviceInfo, type ScrollEndNotification, type ScrollMetrics, type ScrollNotification, ScrollNotificationListener, type ScrollNotificationListenerProps, type ScrollOrientation, type ScrollPhysics, type ScrollStartNotification, type ScrollUpdateNotification, type ScrollViewKeyboardDismissBehavior, Scrollbar, type ScrollbarProps, type SetStateAction, Share, type ShareResultStatus, SingleChildScrollView, type SingleChildScrollViewProps, SizedBox, type SizedBoxProps, SliverFillRemaining, type SliverFillRemainingProps, SliverFixedHeightPersistentHeader, type SliverFixedHeightPersistentHeaderProps, SliverToBoxAdapter, type SliverToBoxAdapterProps, SocketIO, Spacer, type SpacerProps, Stack, type StackFit, type StackProps, type StateInitializer, StickyHeader, type StickyHeaderProps, Storage, StringSvg, type StringSvgProps, type StrokeCap, type StrutStyle, Svg, type SvgProps, Swiper, SwiperPagination, type SwiperPaginationProps, type SwiperProps, Switch, type SwitchProps, type SystemUIOverlayStyle, type TabAlignment, TabBar, type TabBarIndicatorSize, type TabBarProps, TabBarView, type TabBarViewProps, TabController, TabControllerConsumer, TabControllerContext, type TabControllerProps, TabControllerProvider, type TabControllerRef, type TabControllerRenderNode, type TapDownDetails, type TapUpDetails, Text, type TextAlign, type TextBaseLine, type TextDecoration, type TextDecorationStyle, type TextDirection, TextField, type TextFieldProps, type TextHeightBehavior, type TextInputType, type TextLeadingDistribution, type TextOverflow, type TextProps, TextSpan, type TextSpanProps, type TextStyle, type TextWidthBasis, type ThemeMode, type ThemeState, Ticker, TickerManager, TickerManagerConsumer, TickerManagerProvider, type TickerManagerProviderProps, type TickerManagerRef, type TileMode, TransformRotate, type TransformRotateProps, TransformScale, type TransformScaleProps, TransformTranslate, type TransformTranslateProps, type Tween, type TweenSequence, type TweenSequenceConstantItem, type TweenSequenceItem, type TweenType, type TypedParams, UnconstrainedBox, type UnconstrainedBoxProps, type UserScrollNotification, type Velocity, type VerticalDirection, type VirtualNode, WebView, WebViewController, type WebViewProps, type WebViewSettings, Wrap, type WrapAlignment, type WrapCrossAlignment, type WrapProps, type WrappedRouter, createContext, createElement, fetch, index as fs, getPermissionStatus, isApiEnabled, requestPermission, runApp, useAnimationController, useByTheme, useCallback, useCancelToken, useContext, useCupertinoColors, useEffect, useLayerLink, useLocale, useMediaQuery, useMemo, useNavigator, useReducer, useRef, useRouteParams, useRouter, useSelector, useState, useTabController, useThemeState, useTickerManager };
|
|
3478
3271
|
export as namespace Scripting;
|