capacitor-plugin-playlist 0.11.2 → 0.13.0
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/README.md +133 -127
- package/android/build.gradle +31 -18
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/AudioMediaItemFactory.java +96 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +3 -3
- package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.java +145 -188
- package/android/src/main/java/org/dwbn/plugins/playlist/RmxPlaybackErrorMapper.kt +26 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/data/AudioTrack.kt +28 -28
- package/android/src/main/java/org/dwbn/plugins/playlist/handoff/VideoPlayerBridge.kt +102 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaybackProgress.kt +8 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +418 -183
- package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistPlaybackPolicy.kt +98 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/manager/RmxPlaybackState.kt +11 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.java +107 -211
- package/android/src/main/java/org/dwbn/plugins/playlist/service/GlideBitmapLoader.kt +121 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/service/HandoffForwardingPlayer.kt +185 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaNotificationPolicy.kt +253 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaService.kt +260 -68
- package/android/src/main/java/org/dwbn/plugins/playlist/service/PlaylistMediaSessionCallback.kt +39 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/AudioMediaItemFactoryMimeTest.kt +98 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/AudioMediaItemFactoryTest.java +71 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/data/AudioTrackTest.kt +53 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/handoff/VideoPlayerBridgeTest.kt +84 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/manager/PlaylistPlaybackPolicyTest.kt +128 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandlerTest.kt +145 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/service/GlideBitmapLoaderTest.kt +76 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/service/HandoffForwardingPlayerTest.kt +282 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/service/MediaNotificationPolicyTest.kt +285 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/service/VideoHandoffNotificationCommandsTest.kt +54 -0
- package/android/src/test/java/org/dwbn/plugins/playlist/service/VideoHandoffNotificationPolicyTest.kt +47 -0
- package/dist/docs.json +12 -846
- package/dist/esm/RmxAudioPlayer.d.ts +2 -2
- package/dist/esm/RmxAudioPlayer.js.map +1 -1
- package/dist/esm/definitions.d.ts +7 -7
- package/dist/esm/interfaces.d.ts +7 -1
- package/dist/esm/utils.d.ts +1 -1
- package/dist/esm/utils.js +2 -2
- package/dist/esm/utils.js.map +1 -1
- package/dist/esm/web.d.ts +3 -3
- package/dist/esm/web.js +5 -5
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +7 -7
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +7 -7
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/PlaylistPlugin/AVBidirectionalQueuePlayer.swift +45 -6
- package/ios/Sources/PlaylistPlugin/AudioTrack.swift +15 -2
- package/ios/Tests/PlaylistPluginTests/PositionResumeTests.swift +82 -0
- package/package.json +15 -19
- package/android/src/main/java/org/dwbn/plugins/playlist/notification/PlaylistNotificationProvider.kt +0 -26
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +0 -114
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/BaseMediaApi.kt +0 -36
- package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaImageProvider.kt +0 -83
package/dist/docs.json
CHANGED
|
@@ -717,6 +717,13 @@
|
|
|
717
717
|
"docs": "Title of the track",
|
|
718
718
|
"complexTypes": [],
|
|
719
719
|
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "startPosition",
|
|
723
|
+
"tags": [],
|
|
724
|
+
"docs": "Last known playback position to resume from, in seconds, when this track becomes\ncurrent via a native skip-to-next/previous (e.g. OS notification, headset button,\nAndroid Auto/CarPlay, or the in-app Next/Previous buttons). Optional; defaults to 0.",
|
|
725
|
+
"complexTypes": [],
|
|
726
|
+
"type": "number | undefined"
|
|
720
727
|
}
|
|
721
728
|
]
|
|
722
729
|
},
|
|
@@ -805,10 +812,9 @@
|
|
|
805
812
|
"tags": [],
|
|
806
813
|
"docs": "",
|
|
807
814
|
"complexTypes": [
|
|
808
|
-
"Array",
|
|
809
815
|
"AudioTrack"
|
|
810
816
|
],
|
|
811
|
-
"type": "
|
|
817
|
+
"type": "AudioTrack[]"
|
|
812
818
|
},
|
|
813
819
|
{
|
|
814
820
|
"name": "options",
|
|
@@ -821,843 +827,6 @@
|
|
|
821
827
|
}
|
|
822
828
|
]
|
|
823
829
|
},
|
|
824
|
-
{
|
|
825
|
-
"name": "Array",
|
|
826
|
-
"slug": "array",
|
|
827
|
-
"docs": "",
|
|
828
|
-
"tags": [],
|
|
829
|
-
"methods": [
|
|
830
|
-
{
|
|
831
|
-
"name": "toString",
|
|
832
|
-
"signature": "() => string",
|
|
833
|
-
"parameters": [],
|
|
834
|
-
"returns": "string",
|
|
835
|
-
"tags": [],
|
|
836
|
-
"docs": "Returns a string representation of an array.",
|
|
837
|
-
"complexTypes": [],
|
|
838
|
-
"slug": "tostring"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"name": "toLocaleString",
|
|
842
|
-
"signature": "() => string",
|
|
843
|
-
"parameters": [],
|
|
844
|
-
"returns": "string",
|
|
845
|
-
"tags": [],
|
|
846
|
-
"docs": "Returns a string representation of an array. The elements are converted to string using their toLocalString methods.",
|
|
847
|
-
"complexTypes": [],
|
|
848
|
-
"slug": "tolocalestring"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"name": "pop",
|
|
852
|
-
"signature": "() => T | undefined",
|
|
853
|
-
"parameters": [],
|
|
854
|
-
"returns": "T | undefined",
|
|
855
|
-
"tags": [],
|
|
856
|
-
"docs": "Removes the last element from an array and returns it.\r\nIf the array is empty, undefined is returned and the array is not modified.",
|
|
857
|
-
"complexTypes": [
|
|
858
|
-
"T"
|
|
859
|
-
],
|
|
860
|
-
"slug": "pop"
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
"name": "push",
|
|
864
|
-
"signature": "(...items: T[]) => number",
|
|
865
|
-
"parameters": [
|
|
866
|
-
{
|
|
867
|
-
"name": "items",
|
|
868
|
-
"docs": "New elements to add to the array.",
|
|
869
|
-
"type": "T[]"
|
|
870
|
-
}
|
|
871
|
-
],
|
|
872
|
-
"returns": "number",
|
|
873
|
-
"tags": [
|
|
874
|
-
{
|
|
875
|
-
"name": "param",
|
|
876
|
-
"text": "items New elements to add to the array."
|
|
877
|
-
}
|
|
878
|
-
],
|
|
879
|
-
"docs": "Appends new elements to the end of an array, and returns the new length of the array.",
|
|
880
|
-
"complexTypes": [
|
|
881
|
-
"T"
|
|
882
|
-
],
|
|
883
|
-
"slug": "push"
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
"name": "concat",
|
|
887
|
-
"signature": "(...items: ConcatArray<T>[]) => T[]",
|
|
888
|
-
"parameters": [
|
|
889
|
-
{
|
|
890
|
-
"name": "items",
|
|
891
|
-
"docs": "Additional arrays and/or items to add to the end of the array.",
|
|
892
|
-
"type": "ConcatArray<T>[]"
|
|
893
|
-
}
|
|
894
|
-
],
|
|
895
|
-
"returns": "T[]",
|
|
896
|
-
"tags": [
|
|
897
|
-
{
|
|
898
|
-
"name": "param",
|
|
899
|
-
"text": "items Additional arrays and/or items to add to the end of the array."
|
|
900
|
-
}
|
|
901
|
-
],
|
|
902
|
-
"docs": "Combines two or more arrays.\r\nThis method returns a new array without modifying any existing arrays.",
|
|
903
|
-
"complexTypes": [
|
|
904
|
-
"T",
|
|
905
|
-
"ConcatArray"
|
|
906
|
-
],
|
|
907
|
-
"slug": "concat"
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
"name": "concat",
|
|
911
|
-
"signature": "(...items: (T | ConcatArray<T>)[]) => T[]",
|
|
912
|
-
"parameters": [
|
|
913
|
-
{
|
|
914
|
-
"name": "items",
|
|
915
|
-
"docs": "Additional arrays and/or items to add to the end of the array.",
|
|
916
|
-
"type": "(T | ConcatArray<T>)[]"
|
|
917
|
-
}
|
|
918
|
-
],
|
|
919
|
-
"returns": "T[]",
|
|
920
|
-
"tags": [
|
|
921
|
-
{
|
|
922
|
-
"name": "param",
|
|
923
|
-
"text": "items Additional arrays and/or items to add to the end of the array."
|
|
924
|
-
}
|
|
925
|
-
],
|
|
926
|
-
"docs": "Combines two or more arrays.\r\nThis method returns a new array without modifying any existing arrays.",
|
|
927
|
-
"complexTypes": [
|
|
928
|
-
"T",
|
|
929
|
-
"ConcatArray"
|
|
930
|
-
],
|
|
931
|
-
"slug": "concat"
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
"name": "join",
|
|
935
|
-
"signature": "(separator?: string | undefined) => string",
|
|
936
|
-
"parameters": [
|
|
937
|
-
{
|
|
938
|
-
"name": "separator",
|
|
939
|
-
"docs": "A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",
|
|
940
|
-
"type": "string | undefined"
|
|
941
|
-
}
|
|
942
|
-
],
|
|
943
|
-
"returns": "string",
|
|
944
|
-
"tags": [
|
|
945
|
-
{
|
|
946
|
-
"name": "param",
|
|
947
|
-
"text": "separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma."
|
|
948
|
-
}
|
|
949
|
-
],
|
|
950
|
-
"docs": "Adds all the elements of an array into a string, separated by the specified separator string.",
|
|
951
|
-
"complexTypes": [],
|
|
952
|
-
"slug": "join"
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
"name": "reverse",
|
|
956
|
-
"signature": "() => T[]",
|
|
957
|
-
"parameters": [],
|
|
958
|
-
"returns": "T[]",
|
|
959
|
-
"tags": [],
|
|
960
|
-
"docs": "Reverses the elements in an array in place.\r\nThis method mutates the array and returns a reference to the same array.",
|
|
961
|
-
"complexTypes": [
|
|
962
|
-
"T"
|
|
963
|
-
],
|
|
964
|
-
"slug": "reverse"
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"name": "shift",
|
|
968
|
-
"signature": "() => T | undefined",
|
|
969
|
-
"parameters": [],
|
|
970
|
-
"returns": "T | undefined",
|
|
971
|
-
"tags": [],
|
|
972
|
-
"docs": "Removes the first element from an array and returns it.\r\nIf the array is empty, undefined is returned and the array is not modified.",
|
|
973
|
-
"complexTypes": [
|
|
974
|
-
"T"
|
|
975
|
-
],
|
|
976
|
-
"slug": "shift"
|
|
977
|
-
},
|
|
978
|
-
{
|
|
979
|
-
"name": "slice",
|
|
980
|
-
"signature": "(start?: number | undefined, end?: number | undefined) => T[]",
|
|
981
|
-
"parameters": [
|
|
982
|
-
{
|
|
983
|
-
"name": "start",
|
|
984
|
-
"docs": "The beginning index of the specified portion of the array.\r\nIf start is undefined, then the slice begins at index 0.",
|
|
985
|
-
"type": "number | undefined"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"name": "end",
|
|
989
|
-
"docs": "The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\r\nIf end is undefined, then the slice extends to the end of the array.",
|
|
990
|
-
"type": "number | undefined"
|
|
991
|
-
}
|
|
992
|
-
],
|
|
993
|
-
"returns": "T[]",
|
|
994
|
-
"tags": [
|
|
995
|
-
{
|
|
996
|
-
"name": "param",
|
|
997
|
-
"text": "start The beginning index of the specified portion of the array.\r\nIf start is undefined, then the slice begins at index 0."
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
"name": "param",
|
|
1001
|
-
"text": "end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\r\nIf end is undefined, then the slice extends to the end of the array."
|
|
1002
|
-
}
|
|
1003
|
-
],
|
|
1004
|
-
"docs": "Returns a copy of a section of an array.\r\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\r\nFor example, -2 refers to the second to last element of the array.",
|
|
1005
|
-
"complexTypes": [
|
|
1006
|
-
"T"
|
|
1007
|
-
],
|
|
1008
|
-
"slug": "slice"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"name": "sort",
|
|
1012
|
-
"signature": "(compareFn?: ((a: T, b: T) => number) | undefined) => this",
|
|
1013
|
-
"parameters": [
|
|
1014
|
-
{
|
|
1015
|
-
"name": "compareFn",
|
|
1016
|
-
"docs": "Function used to determine the order of the elements. It is expected to return\r\na negative value if first argument is less than second argument, zero if they're equal and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```",
|
|
1017
|
-
"type": "((a: T, b: T) => number) | undefined"
|
|
1018
|
-
}
|
|
1019
|
-
],
|
|
1020
|
-
"returns": "this",
|
|
1021
|
-
"tags": [
|
|
1022
|
-
{
|
|
1023
|
-
"name": "param",
|
|
1024
|
-
"text": "compareFn Function used to determine the order of the elements. It is expected to return\r\na negative value if first argument is less than second argument, zero if they're equal and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```"
|
|
1025
|
-
}
|
|
1026
|
-
],
|
|
1027
|
-
"docs": "Sorts an array in place.\r\nThis method mutates the array and returns a reference to the same array.",
|
|
1028
|
-
"complexTypes": [
|
|
1029
|
-
"T"
|
|
1030
|
-
],
|
|
1031
|
-
"slug": "sort"
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
"name": "splice",
|
|
1035
|
-
"signature": "(start: number, deleteCount?: number | undefined) => T[]",
|
|
1036
|
-
"parameters": [
|
|
1037
|
-
{
|
|
1038
|
-
"name": "start",
|
|
1039
|
-
"docs": "The zero-based location in the array from which to start removing elements.",
|
|
1040
|
-
"type": "number"
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
"name": "deleteCount",
|
|
1044
|
-
"docs": "The number of elements to remove.",
|
|
1045
|
-
"type": "number | undefined"
|
|
1046
|
-
}
|
|
1047
|
-
],
|
|
1048
|
-
"returns": "T[]",
|
|
1049
|
-
"tags": [
|
|
1050
|
-
{
|
|
1051
|
-
"name": "param",
|
|
1052
|
-
"text": "start The zero-based location in the array from which to start removing elements."
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
"name": "param",
|
|
1056
|
-
"text": "deleteCount The number of elements to remove."
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"name": "returns",
|
|
1060
|
-
"text": "An array containing the elements that were deleted."
|
|
1061
|
-
}
|
|
1062
|
-
],
|
|
1063
|
-
"docs": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.",
|
|
1064
|
-
"complexTypes": [
|
|
1065
|
-
"T"
|
|
1066
|
-
],
|
|
1067
|
-
"slug": "splice"
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
"name": "splice",
|
|
1071
|
-
"signature": "(start: number, deleteCount: number, ...items: T[]) => T[]",
|
|
1072
|
-
"parameters": [
|
|
1073
|
-
{
|
|
1074
|
-
"name": "start",
|
|
1075
|
-
"docs": "The zero-based location in the array from which to start removing elements.",
|
|
1076
|
-
"type": "number"
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
"name": "deleteCount",
|
|
1080
|
-
"docs": "The number of elements to remove.",
|
|
1081
|
-
"type": "number"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"name": "items",
|
|
1085
|
-
"docs": "Elements to insert into the array in place of the deleted elements.",
|
|
1086
|
-
"type": "T[]"
|
|
1087
|
-
}
|
|
1088
|
-
],
|
|
1089
|
-
"returns": "T[]",
|
|
1090
|
-
"tags": [
|
|
1091
|
-
{
|
|
1092
|
-
"name": "param",
|
|
1093
|
-
"text": "start The zero-based location in the array from which to start removing elements."
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
"name": "param",
|
|
1097
|
-
"text": "deleteCount The number of elements to remove."
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
"name": "param",
|
|
1101
|
-
"text": "items Elements to insert into the array in place of the deleted elements."
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
"name": "returns",
|
|
1105
|
-
"text": "An array containing the elements that were deleted."
|
|
1106
|
-
}
|
|
1107
|
-
],
|
|
1108
|
-
"docs": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.",
|
|
1109
|
-
"complexTypes": [
|
|
1110
|
-
"T"
|
|
1111
|
-
],
|
|
1112
|
-
"slug": "splice"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
"name": "unshift",
|
|
1116
|
-
"signature": "(...items: T[]) => number",
|
|
1117
|
-
"parameters": [
|
|
1118
|
-
{
|
|
1119
|
-
"name": "items",
|
|
1120
|
-
"docs": "Elements to insert at the start of the array.",
|
|
1121
|
-
"type": "T[]"
|
|
1122
|
-
}
|
|
1123
|
-
],
|
|
1124
|
-
"returns": "number",
|
|
1125
|
-
"tags": [
|
|
1126
|
-
{
|
|
1127
|
-
"name": "param",
|
|
1128
|
-
"text": "items Elements to insert at the start of the array."
|
|
1129
|
-
}
|
|
1130
|
-
],
|
|
1131
|
-
"docs": "Inserts new elements at the start of an array, and returns the new length of the array.",
|
|
1132
|
-
"complexTypes": [
|
|
1133
|
-
"T"
|
|
1134
|
-
],
|
|
1135
|
-
"slug": "unshift"
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
"name": "indexOf",
|
|
1139
|
-
"signature": "(searchElement: T, fromIndex?: number | undefined) => number",
|
|
1140
|
-
"parameters": [
|
|
1141
|
-
{
|
|
1142
|
-
"name": "searchElement",
|
|
1143
|
-
"docs": "The value to locate in the array.",
|
|
1144
|
-
"type": "T"
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
"name": "fromIndex",
|
|
1148
|
-
"docs": "The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",
|
|
1149
|
-
"type": "number | undefined"
|
|
1150
|
-
}
|
|
1151
|
-
],
|
|
1152
|
-
"returns": "number",
|
|
1153
|
-
"tags": [
|
|
1154
|
-
{
|
|
1155
|
-
"name": "param",
|
|
1156
|
-
"text": "searchElement The value to locate in the array."
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"name": "param",
|
|
1160
|
-
"text": "fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0."
|
|
1161
|
-
}
|
|
1162
|
-
],
|
|
1163
|
-
"docs": "Returns the index of the first occurrence of a value in an array, or -1 if it is not present.",
|
|
1164
|
-
"complexTypes": [
|
|
1165
|
-
"T"
|
|
1166
|
-
],
|
|
1167
|
-
"slug": "indexof"
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
"name": "lastIndexOf",
|
|
1171
|
-
"signature": "(searchElement: T, fromIndex?: number | undefined) => number",
|
|
1172
|
-
"parameters": [
|
|
1173
|
-
{
|
|
1174
|
-
"name": "searchElement",
|
|
1175
|
-
"docs": "The value to locate in the array.",
|
|
1176
|
-
"type": "T"
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
"name": "fromIndex",
|
|
1180
|
-
"docs": "The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",
|
|
1181
|
-
"type": "number | undefined"
|
|
1182
|
-
}
|
|
1183
|
-
],
|
|
1184
|
-
"returns": "number",
|
|
1185
|
-
"tags": [
|
|
1186
|
-
{
|
|
1187
|
-
"name": "param",
|
|
1188
|
-
"text": "searchElement The value to locate in the array."
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"name": "param",
|
|
1192
|
-
"text": "fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array."
|
|
1193
|
-
}
|
|
1194
|
-
],
|
|
1195
|
-
"docs": "Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.",
|
|
1196
|
-
"complexTypes": [
|
|
1197
|
-
"T"
|
|
1198
|
-
],
|
|
1199
|
-
"slug": "lastindexof"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
"name": "every",
|
|
1203
|
-
"signature": "<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any) => this is S[]",
|
|
1204
|
-
"parameters": [
|
|
1205
|
-
{
|
|
1206
|
-
"name": "predicate",
|
|
1207
|
-
"docs": "A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array.",
|
|
1208
|
-
"type": "(value: T, index: number, array: T[]) => value is S"
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"name": "thisArg",
|
|
1212
|
-
"docs": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.",
|
|
1213
|
-
"type": "any"
|
|
1214
|
-
}
|
|
1215
|
-
],
|
|
1216
|
-
"returns": "boolean",
|
|
1217
|
-
"tags": [
|
|
1218
|
-
{
|
|
1219
|
-
"name": "param",
|
|
1220
|
-
"text": "predicate A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array."
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
"name": "param",
|
|
1224
|
-
"text": "thisArg An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value."
|
|
1225
|
-
}
|
|
1226
|
-
],
|
|
1227
|
-
"docs": "Determines whether all the members of an array satisfy the specified test.",
|
|
1228
|
-
"complexTypes": [
|
|
1229
|
-
"T",
|
|
1230
|
-
"S"
|
|
1231
|
-
],
|
|
1232
|
-
"slug": "every"
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
"name": "every",
|
|
1236
|
-
"signature": "(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => boolean",
|
|
1237
|
-
"parameters": [
|
|
1238
|
-
{
|
|
1239
|
-
"name": "predicate",
|
|
1240
|
-
"docs": "A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array.",
|
|
1241
|
-
"type": "(value: T, index: number, array: T[]) => unknown"
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
"name": "thisArg",
|
|
1245
|
-
"docs": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.",
|
|
1246
|
-
"type": "any"
|
|
1247
|
-
}
|
|
1248
|
-
],
|
|
1249
|
-
"returns": "boolean",
|
|
1250
|
-
"tags": [
|
|
1251
|
-
{
|
|
1252
|
-
"name": "param",
|
|
1253
|
-
"text": "predicate A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array."
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
"name": "param",
|
|
1257
|
-
"text": "thisArg An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value."
|
|
1258
|
-
}
|
|
1259
|
-
],
|
|
1260
|
-
"docs": "Determines whether all the members of an array satisfy the specified test.",
|
|
1261
|
-
"complexTypes": [
|
|
1262
|
-
"T"
|
|
1263
|
-
],
|
|
1264
|
-
"slug": "every"
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"name": "some",
|
|
1268
|
-
"signature": "(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => boolean",
|
|
1269
|
-
"parameters": [
|
|
1270
|
-
{
|
|
1271
|
-
"name": "predicate",
|
|
1272
|
-
"docs": "A function that accepts up to three arguments. The some method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value true, or until the end of the array.",
|
|
1273
|
-
"type": "(value: T, index: number, array: T[]) => unknown"
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
"name": "thisArg",
|
|
1277
|
-
"docs": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.",
|
|
1278
|
-
"type": "any"
|
|
1279
|
-
}
|
|
1280
|
-
],
|
|
1281
|
-
"returns": "boolean",
|
|
1282
|
-
"tags": [
|
|
1283
|
-
{
|
|
1284
|
-
"name": "param",
|
|
1285
|
-
"text": "predicate A function that accepts up to three arguments. The some method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value true, or until the end of the array."
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
"name": "param",
|
|
1289
|
-
"text": "thisArg An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value."
|
|
1290
|
-
}
|
|
1291
|
-
],
|
|
1292
|
-
"docs": "Determines whether the specified callback function returns true for any element of an array.",
|
|
1293
|
-
"complexTypes": [
|
|
1294
|
-
"T"
|
|
1295
|
-
],
|
|
1296
|
-
"slug": "some"
|
|
1297
|
-
},
|
|
1298
|
-
{
|
|
1299
|
-
"name": "forEach",
|
|
1300
|
-
"signature": "(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any) => void",
|
|
1301
|
-
"parameters": [
|
|
1302
|
-
{
|
|
1303
|
-
"name": "callbackfn",
|
|
1304
|
-
"docs": "A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.",
|
|
1305
|
-
"type": "(value: T, index: number, array: T[]) => void"
|
|
1306
|
-
},
|
|
1307
|
-
{
|
|
1308
|
-
"name": "thisArg",
|
|
1309
|
-
"docs": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",
|
|
1310
|
-
"type": "any"
|
|
1311
|
-
}
|
|
1312
|
-
],
|
|
1313
|
-
"returns": "void",
|
|
1314
|
-
"tags": [
|
|
1315
|
-
{
|
|
1316
|
-
"name": "param",
|
|
1317
|
-
"text": "callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array."
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
"name": "param",
|
|
1321
|
-
"text": "thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value."
|
|
1322
|
-
}
|
|
1323
|
-
],
|
|
1324
|
-
"docs": "Performs the specified action for each element in an array.",
|
|
1325
|
-
"complexTypes": [
|
|
1326
|
-
"T"
|
|
1327
|
-
],
|
|
1328
|
-
"slug": "foreach"
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"name": "map",
|
|
1332
|
-
"signature": "<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[]",
|
|
1333
|
-
"parameters": [
|
|
1334
|
-
{
|
|
1335
|
-
"name": "callbackfn",
|
|
1336
|
-
"docs": "A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.",
|
|
1337
|
-
"type": "(value: T, index: number, array: T[]) => U"
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
"name": "thisArg",
|
|
1341
|
-
"docs": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",
|
|
1342
|
-
"type": "any"
|
|
1343
|
-
}
|
|
1344
|
-
],
|
|
1345
|
-
"returns": "U[]",
|
|
1346
|
-
"tags": [
|
|
1347
|
-
{
|
|
1348
|
-
"name": "param",
|
|
1349
|
-
"text": "callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array."
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
"name": "param",
|
|
1353
|
-
"text": "thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value."
|
|
1354
|
-
}
|
|
1355
|
-
],
|
|
1356
|
-
"docs": "Calls a defined callback function on each element of an array, and returns an array that contains the results.",
|
|
1357
|
-
"complexTypes": [
|
|
1358
|
-
"U",
|
|
1359
|
-
"T"
|
|
1360
|
-
],
|
|
1361
|
-
"slug": "map"
|
|
1362
|
-
},
|
|
1363
|
-
{
|
|
1364
|
-
"name": "filter",
|
|
1365
|
-
"signature": "<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any) => S[]",
|
|
1366
|
-
"parameters": [
|
|
1367
|
-
{
|
|
1368
|
-
"name": "predicate",
|
|
1369
|
-
"docs": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.",
|
|
1370
|
-
"type": "(value: T, index: number, array: T[]) => value is S"
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
"name": "thisArg",
|
|
1374
|
-
"docs": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",
|
|
1375
|
-
"type": "any"
|
|
1376
|
-
}
|
|
1377
|
-
],
|
|
1378
|
-
"returns": "S[]",
|
|
1379
|
-
"tags": [
|
|
1380
|
-
{
|
|
1381
|
-
"name": "param",
|
|
1382
|
-
"text": "predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array."
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
"name": "param",
|
|
1386
|
-
"text": "thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value."
|
|
1387
|
-
}
|
|
1388
|
-
],
|
|
1389
|
-
"docs": "Returns the elements of an array that meet the condition specified in a callback function.",
|
|
1390
|
-
"complexTypes": [
|
|
1391
|
-
"S",
|
|
1392
|
-
"T"
|
|
1393
|
-
],
|
|
1394
|
-
"slug": "filter"
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
"name": "filter",
|
|
1398
|
-
"signature": "(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => T[]",
|
|
1399
|
-
"parameters": [
|
|
1400
|
-
{
|
|
1401
|
-
"name": "predicate",
|
|
1402
|
-
"docs": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.",
|
|
1403
|
-
"type": "(value: T, index: number, array: T[]) => unknown"
|
|
1404
|
-
},
|
|
1405
|
-
{
|
|
1406
|
-
"name": "thisArg",
|
|
1407
|
-
"docs": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",
|
|
1408
|
-
"type": "any"
|
|
1409
|
-
}
|
|
1410
|
-
],
|
|
1411
|
-
"returns": "T[]",
|
|
1412
|
-
"tags": [
|
|
1413
|
-
{
|
|
1414
|
-
"name": "param",
|
|
1415
|
-
"text": "predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array."
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
"name": "param",
|
|
1419
|
-
"text": "thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value."
|
|
1420
|
-
}
|
|
1421
|
-
],
|
|
1422
|
-
"docs": "Returns the elements of an array that meet the condition specified in a callback function.",
|
|
1423
|
-
"complexTypes": [
|
|
1424
|
-
"T"
|
|
1425
|
-
],
|
|
1426
|
-
"slug": "filter"
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
"name": "reduce",
|
|
1430
|
-
"signature": "(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T) => T",
|
|
1431
|
-
"parameters": [
|
|
1432
|
-
{
|
|
1433
|
-
"name": "callbackfn",
|
|
1434
|
-
"docs": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.",
|
|
1435
|
-
"type": "(previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T"
|
|
1436
|
-
}
|
|
1437
|
-
],
|
|
1438
|
-
"returns": "T",
|
|
1439
|
-
"tags": [
|
|
1440
|
-
{
|
|
1441
|
-
"name": "param",
|
|
1442
|
-
"text": "callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array."
|
|
1443
|
-
},
|
|
1444
|
-
{
|
|
1445
|
-
"name": "param",
|
|
1446
|
-
"text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
|
|
1447
|
-
}
|
|
1448
|
-
],
|
|
1449
|
-
"docs": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
|
|
1450
|
-
"complexTypes": [
|
|
1451
|
-
"T"
|
|
1452
|
-
],
|
|
1453
|
-
"slug": "reduce"
|
|
1454
|
-
},
|
|
1455
|
-
{
|
|
1456
|
-
"name": "reduce",
|
|
1457
|
-
"signature": "(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T) => T",
|
|
1458
|
-
"parameters": [
|
|
1459
|
-
{
|
|
1460
|
-
"name": "callbackfn",
|
|
1461
|
-
"docs": "",
|
|
1462
|
-
"type": "(previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T"
|
|
1463
|
-
},
|
|
1464
|
-
{
|
|
1465
|
-
"name": "initialValue",
|
|
1466
|
-
"docs": "",
|
|
1467
|
-
"type": "T"
|
|
1468
|
-
}
|
|
1469
|
-
],
|
|
1470
|
-
"returns": "T",
|
|
1471
|
-
"tags": [],
|
|
1472
|
-
"docs": "",
|
|
1473
|
-
"complexTypes": [
|
|
1474
|
-
"T"
|
|
1475
|
-
],
|
|
1476
|
-
"slug": "reduce"
|
|
1477
|
-
},
|
|
1478
|
-
{
|
|
1479
|
-
"name": "reduce",
|
|
1480
|
-
"signature": "<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U) => U",
|
|
1481
|
-
"parameters": [
|
|
1482
|
-
{
|
|
1483
|
-
"name": "callbackfn",
|
|
1484
|
-
"docs": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.",
|
|
1485
|
-
"type": "(previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U"
|
|
1486
|
-
},
|
|
1487
|
-
{
|
|
1488
|
-
"name": "initialValue",
|
|
1489
|
-
"docs": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
|
|
1490
|
-
"type": "U"
|
|
1491
|
-
}
|
|
1492
|
-
],
|
|
1493
|
-
"returns": "U",
|
|
1494
|
-
"tags": [
|
|
1495
|
-
{
|
|
1496
|
-
"name": "param",
|
|
1497
|
-
"text": "callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array."
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"name": "param",
|
|
1501
|
-
"text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
|
|
1502
|
-
}
|
|
1503
|
-
],
|
|
1504
|
-
"docs": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
|
|
1505
|
-
"complexTypes": [
|
|
1506
|
-
"U",
|
|
1507
|
-
"T"
|
|
1508
|
-
],
|
|
1509
|
-
"slug": "reduce"
|
|
1510
|
-
},
|
|
1511
|
-
{
|
|
1512
|
-
"name": "reduceRight",
|
|
1513
|
-
"signature": "(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T) => T",
|
|
1514
|
-
"parameters": [
|
|
1515
|
-
{
|
|
1516
|
-
"name": "callbackfn",
|
|
1517
|
-
"docs": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.",
|
|
1518
|
-
"type": "(previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T"
|
|
1519
|
-
}
|
|
1520
|
-
],
|
|
1521
|
-
"returns": "T",
|
|
1522
|
-
"tags": [
|
|
1523
|
-
{
|
|
1524
|
-
"name": "param",
|
|
1525
|
-
"text": "callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array."
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
"name": "param",
|
|
1529
|
-
"text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
|
|
1530
|
-
}
|
|
1531
|
-
],
|
|
1532
|
-
"docs": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
|
|
1533
|
-
"complexTypes": [
|
|
1534
|
-
"T"
|
|
1535
|
-
],
|
|
1536
|
-
"slug": "reduceright"
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
"name": "reduceRight",
|
|
1540
|
-
"signature": "(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T) => T",
|
|
1541
|
-
"parameters": [
|
|
1542
|
-
{
|
|
1543
|
-
"name": "callbackfn",
|
|
1544
|
-
"docs": "",
|
|
1545
|
-
"type": "(previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T"
|
|
1546
|
-
},
|
|
1547
|
-
{
|
|
1548
|
-
"name": "initialValue",
|
|
1549
|
-
"docs": "",
|
|
1550
|
-
"type": "T"
|
|
1551
|
-
}
|
|
1552
|
-
],
|
|
1553
|
-
"returns": "T",
|
|
1554
|
-
"tags": [],
|
|
1555
|
-
"docs": "",
|
|
1556
|
-
"complexTypes": [
|
|
1557
|
-
"T"
|
|
1558
|
-
],
|
|
1559
|
-
"slug": "reduceright"
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
"name": "reduceRight",
|
|
1563
|
-
"signature": "<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U) => U",
|
|
1564
|
-
"parameters": [
|
|
1565
|
-
{
|
|
1566
|
-
"name": "callbackfn",
|
|
1567
|
-
"docs": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.",
|
|
1568
|
-
"type": "(previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U"
|
|
1569
|
-
},
|
|
1570
|
-
{
|
|
1571
|
-
"name": "initialValue",
|
|
1572
|
-
"docs": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
|
|
1573
|
-
"type": "U"
|
|
1574
|
-
}
|
|
1575
|
-
],
|
|
1576
|
-
"returns": "U",
|
|
1577
|
-
"tags": [
|
|
1578
|
-
{
|
|
1579
|
-
"name": "param",
|
|
1580
|
-
"text": "callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array."
|
|
1581
|
-
},
|
|
1582
|
-
{
|
|
1583
|
-
"name": "param",
|
|
1584
|
-
"text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
|
|
1585
|
-
}
|
|
1586
|
-
],
|
|
1587
|
-
"docs": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
|
|
1588
|
-
"complexTypes": [
|
|
1589
|
-
"U",
|
|
1590
|
-
"T"
|
|
1591
|
-
],
|
|
1592
|
-
"slug": "reduceright"
|
|
1593
|
-
}
|
|
1594
|
-
],
|
|
1595
|
-
"properties": [
|
|
1596
|
-
{
|
|
1597
|
-
"name": "length",
|
|
1598
|
-
"tags": [],
|
|
1599
|
-
"docs": "Gets or sets the length of the array. This is a number one higher than the highest index in the array.",
|
|
1600
|
-
"complexTypes": [],
|
|
1601
|
-
"type": "number"
|
|
1602
|
-
}
|
|
1603
|
-
]
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
"name": "ConcatArray",
|
|
1607
|
-
"slug": "concatarray",
|
|
1608
|
-
"docs": "",
|
|
1609
|
-
"tags": [],
|
|
1610
|
-
"methods": [
|
|
1611
|
-
{
|
|
1612
|
-
"name": "join",
|
|
1613
|
-
"signature": "(separator?: string | undefined) => string",
|
|
1614
|
-
"parameters": [
|
|
1615
|
-
{
|
|
1616
|
-
"name": "separator",
|
|
1617
|
-
"docs": "",
|
|
1618
|
-
"type": "string | undefined"
|
|
1619
|
-
}
|
|
1620
|
-
],
|
|
1621
|
-
"returns": "string",
|
|
1622
|
-
"tags": [],
|
|
1623
|
-
"docs": "",
|
|
1624
|
-
"complexTypes": [],
|
|
1625
|
-
"slug": "join"
|
|
1626
|
-
},
|
|
1627
|
-
{
|
|
1628
|
-
"name": "slice",
|
|
1629
|
-
"signature": "(start?: number | undefined, end?: number | undefined) => T[]",
|
|
1630
|
-
"parameters": [
|
|
1631
|
-
{
|
|
1632
|
-
"name": "start",
|
|
1633
|
-
"docs": "",
|
|
1634
|
-
"type": "number | undefined"
|
|
1635
|
-
},
|
|
1636
|
-
{
|
|
1637
|
-
"name": "end",
|
|
1638
|
-
"docs": "",
|
|
1639
|
-
"type": "number | undefined"
|
|
1640
|
-
}
|
|
1641
|
-
],
|
|
1642
|
-
"returns": "T[]",
|
|
1643
|
-
"tags": [],
|
|
1644
|
-
"docs": "",
|
|
1645
|
-
"complexTypes": [
|
|
1646
|
-
"T"
|
|
1647
|
-
],
|
|
1648
|
-
"slug": "slice"
|
|
1649
|
-
}
|
|
1650
|
-
],
|
|
1651
|
-
"properties": [
|
|
1652
|
-
{
|
|
1653
|
-
"name": "length",
|
|
1654
|
-
"tags": [],
|
|
1655
|
-
"docs": "",
|
|
1656
|
-
"complexTypes": [],
|
|
1657
|
-
"type": "number"
|
|
1658
|
-
}
|
|
1659
|
-
]
|
|
1660
|
-
},
|
|
1661
830
|
{
|
|
1662
831
|
"name": "PlaylistItemOptions",
|
|
1663
832
|
"slug": "playlistitemoptions",
|
|
@@ -1787,10 +956,9 @@
|
|
|
1787
956
|
"tags": [],
|
|
1788
957
|
"docs": "",
|
|
1789
958
|
"complexTypes": [
|
|
1790
|
-
"Array",
|
|
1791
959
|
"AudioTrack"
|
|
1792
960
|
],
|
|
1793
|
-
"type": "
|
|
961
|
+
"type": "AudioTrack[]"
|
|
1794
962
|
}
|
|
1795
963
|
]
|
|
1796
964
|
},
|
|
@@ -1829,10 +997,9 @@
|
|
|
1829
997
|
"tags": [],
|
|
1830
998
|
"docs": "",
|
|
1831
999
|
"complexTypes": [
|
|
1832
|
-
"Array",
|
|
1833
1000
|
"RemoveItemOptions"
|
|
1834
1001
|
],
|
|
1835
|
-
"type": "
|
|
1002
|
+
"type": "RemoveItemOptions[]"
|
|
1836
1003
|
}
|
|
1837
1004
|
]
|
|
1838
1005
|
},
|
|
@@ -1848,10 +1015,9 @@
|
|
|
1848
1015
|
"tags": [],
|
|
1849
1016
|
"docs": "",
|
|
1850
1017
|
"complexTypes": [
|
|
1851
|
-
"Array",
|
|
1852
1018
|
"AudioTrack"
|
|
1853
1019
|
],
|
|
1854
|
-
"type": "
|
|
1020
|
+
"type": "AudioTrack[]"
|
|
1855
1021
|
}
|
|
1856
1022
|
]
|
|
1857
1023
|
},
|
|
@@ -2021,7 +1187,7 @@
|
|
|
2021
1187
|
{
|
|
2022
1188
|
"name": "resumed",
|
|
2023
1189
|
"tags": [],
|
|
2024
|
-
"docs": "`true` when native already handled seek (and play when requested) in place.\nWhen `true`, JS should skip redundant `seekTo` / `play` to avoid a stutter.\n`false` on web, prewarm, paused Android handoff
|
|
1190
|
+
"docs": "`true` when native already handled seek (and play when requested) in place.\nWhen `true`, JS should skip redundant `seekTo` / `play` to avoid a stutter.\n`false` on web, prewarm, and paused Android handoff (native does not auto-play).",
|
|
2025
1191
|
"complexTypes": [],
|
|
2026
1192
|
"type": "boolean"
|
|
2027
1193
|
}
|