Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 262eb45dee | |||
| f500a4d471 | |||
| 8a825c7e97 | |||
| 2370cffc13 | |||
| 5902e1f31d | |||
| db4d9b0d71 |
@ -21,20 +21,6 @@
|
|||||||
<key>SupportedPlatformVariant</key>
|
<key>SupportedPlatformVariant</key>
|
||||||
<string>simulator</string>
|
<string>simulator</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
|
||||||
<key>BinaryPath</key>
|
|
||||||
<string>M2Kit.framework/M2Kit</string>
|
|
||||||
<key>LibraryIdentifier</key>
|
|
||||||
<string>ios-arm64</string>
|
|
||||||
<key>LibraryPath</key>
|
|
||||||
<string>M2Kit.framework</string>
|
|
||||||
<key>SupportedArchitectures</key>
|
|
||||||
<array>
|
|
||||||
<string>arm64</string>
|
|
||||||
</array>
|
|
||||||
<key>SupportedPlatform</key>
|
|
||||||
<string>ios</string>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
<dict>
|
||||||
<key>BinaryPath</key>
|
<key>BinaryPath</key>
|
||||||
<string>M2Kit.framework/Versions/A/M2Kit</string>
|
<string>M2Kit.framework/Versions/A/M2Kit</string>
|
||||||
@ -52,6 +38,20 @@
|
|||||||
<key>SupportedPlatformVariant</key>
|
<key>SupportedPlatformVariant</key>
|
||||||
<string>maccatalyst</string>
|
<string>maccatalyst</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>BinaryPath</key>
|
||||||
|
<string>M2Kit.framework/M2Kit</string>
|
||||||
|
<key>LibraryIdentifier</key>
|
||||||
|
<string>ios-arm64</string>
|
||||||
|
<key>LibraryPath</key>
|
||||||
|
<string>M2Kit.framework</string>
|
||||||
|
<key>SupportedArchitectures</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>SupportedPlatform</key>
|
||||||
|
<string>ios</string>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>XFWK</string>
|
<string>XFWK</string>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#if 0
|
#if 0
|
||||||
#elif defined(__arm64__) && __arm64__
|
#elif defined(__arm64__) && __arm64__
|
||||||
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
#ifndef M2KIT_SWIFT_H
|
#ifndef M2KIT_SWIFT_H
|
||||||
#define M2KIT_SWIFT_H
|
#define M2KIT_SWIFT_H
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,64 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -87,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -395,53 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
|
}
|
||||||
|
public enum M2YTIDType : Swift.String {
|
||||||
|
case video
|
||||||
|
case playlist
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct M2YT {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,64 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -87,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -395,53 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
|
}
|
||||||
|
public enum M2YTIDType : Swift.String {
|
||||||
|
case video
|
||||||
|
case playlist
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct M2YT {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#if 0
|
#if 0
|
||||||
#elif defined(__arm64__) && __arm64__
|
#elif defined(__arm64__) && __arm64__
|
||||||
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
#ifndef M2KIT_SWIFT_H
|
#ifndef M2KIT_SWIFT_H
|
||||||
#define M2KIT_SWIFT_H
|
#define M2KIT_SWIFT_H
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
@ -324,7 +324,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__x86_64__) && __x86_64__
|
#elif defined(__x86_64__) && __x86_64__
|
||||||
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
#ifndef M2KIT_SWIFT_H
|
#ifndef M2KIT_SWIFT_H
|
||||||
#define M2KIT_SWIFT_H
|
#define M2KIT_SWIFT_H
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target arm64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target arm64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target arm64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target arm64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target x86_64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target x86_64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target x86_64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target x86_64-apple-ios15.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>BuildMachineOSBuild</key>
|
<key>BuildMachineOSBuild</key>
|
||||||
<string>24G90</string>
|
<string>25B78</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>en</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>5.3</string>
|
<string>5.9</string>
|
||||||
<key>CFBundleSupportedPlatforms</key>
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
<array>
|
<array>
|
||||||
<string>MacOSX</string>
|
<string>MacOSX</string>
|
||||||
@ -27,19 +27,19 @@
|
|||||||
<key>DTCompiler</key>
|
<key>DTCompiler</key>
|
||||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||||
<key>DTPlatformBuild</key>
|
<key>DTPlatformBuild</key>
|
||||||
<string>24F74</string>
|
<string>25B74</string>
|
||||||
<key>DTPlatformName</key>
|
<key>DTPlatformName</key>
|
||||||
<string>macosx</string>
|
<string>macosx</string>
|
||||||
<key>DTPlatformVersion</key>
|
<key>DTPlatformVersion</key>
|
||||||
<string>15.5</string>
|
<string>26.1</string>
|
||||||
<key>DTSDKBuild</key>
|
<key>DTSDKBuild</key>
|
||||||
<string>24F74</string>
|
<string>25B74</string>
|
||||||
<key>DTSDKName</key>
|
<key>DTSDKName</key>
|
||||||
<string>macosx15.5</string>
|
<string>macosx26.1</string>
|
||||||
<key>DTXcode</key>
|
<key>DTXcode</key>
|
||||||
<string>1640</string>
|
<string>2611</string>
|
||||||
<key>DTXcodeBuild</key>
|
<key>DTXcodeBuild</key>
|
||||||
<string>16F6</string>
|
<string>17B100</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>12.0</string>
|
<string>12.0</string>
|
||||||
<key>UIDeviceFamily</key>
|
<key>UIDeviceFamily</key>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#if 0
|
#if 0
|
||||||
#elif defined(__arm64__) && __arm64__
|
#elif defined(__arm64__) && __arm64__
|
||||||
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
#ifndef M2KIT_SWIFT_H
|
#ifndef M2KIT_SWIFT_H
|
||||||
#define M2KIT_SWIFT_H
|
#define M2KIT_SWIFT_H
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
@ -324,7 +324,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__x86_64__) && __x86_64__
|
#elif defined(__x86_64__) && __x86_64__
|
||||||
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
#ifndef M2KIT_SWIFT_H
|
#ifndef M2KIT_SWIFT_H
|
||||||
#define M2KIT_SWIFT_H
|
#define M2KIT_SWIFT_H
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target arm64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// swift-interface-format-version: 1.0
|
// swift-interface-format-version: 1.0
|
||||||
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
||||||
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
|
||||||
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
@ -15,48 +15,24 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@_Concurrency.MainActor public struct M2Backup {
|
|
||||||
@_Concurrency.MainActor public static var backupCode: Swift.String {
|
|
||||||
get
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
|
||||||
}
|
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -71,40 +47,212 @@ extension M2Kit.M2API {
|
|||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public init()
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
#endif
|
||||||
public typealias Body = Swift.Never
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public typealias Coordinator = Swift.Void
|
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
|
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
||||||
@objc deinit
|
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
|
||||||
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor public static var countryCode: Swift.String {
|
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public let m2Version: Swift.String
|
||||||
|
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||||
|
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||||
|
public struct M2Feedback {
|
||||||
|
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2HTTP {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
@available(*, deprecated, message: "M2Image is deprecated. Use M2Image2 instead.")
|
||||||
|
public struct M2Image {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2Image2 {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public struct M2K {
|
||||||
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
|
public struct M2Musi {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
public enum M2NetConnecttionType {
|
||||||
|
case wifi
|
||||||
|
case cellular
|
||||||
|
case other
|
||||||
|
case none
|
||||||
|
public static func == (a: M2Kit.M2NetConnecttionType, b: M2Kit.M2NetConnecttionType) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
public struct M2NetMonitor {
|
||||||
@_Concurrency.MainActor public static func randomCode() -> Swift.String
|
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||||
|
public var isConnected: Swift.Bool {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var connectionType: M2Kit.M2NetConnecttionType {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func stop()
|
||||||
|
}
|
||||||
|
public struct M2Radio {
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
||||||
|
public static func changeRadioCountryCode(_ code: Swift.String)
|
||||||
|
public static func getCurrentRadioCountryCode() -> Swift.String
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2Radio {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
@_hasMissingDesignatedInitializers public class M2Setting {
|
@_hasMissingDesignatedInitializers public class M2Setting {
|
||||||
public static var option10: Swift.String {
|
public static var option10: Swift.String {
|
||||||
@ -379,69 +527,61 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Radio {
|
public struct M2Utils {
|
||||||
|
public static func workFor(trackID: Swift.String)
|
||||||
|
public static let workForChangedNotification: Foundation.Notification.Name
|
||||||
|
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
||||||
|
public static func deleteDataOf(trackID: Swift.String)
|
||||||
|
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
@_Concurrency.MainActor public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
|
||||||
@_Concurrency.MainActor public static func changeRadioCountryCode(_ code: Swift.String)
|
|
||||||
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2Radio {
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
|
||||||
}
|
|
||||||
@_Concurrency.MainActor public struct M2NetMonitor {
|
|
||||||
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
|
||||||
@_Concurrency.MainActor public var isConnected: Swift.Bool {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public func stop()
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Musi {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2K {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Image {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
@_Concurrency.MainActor @preconcurrency public func makeUIViewController(context: M2Kit.M2WebView.Context) -> M2Kit.M2WebVC
|
||||||
|
@_Concurrency.MainActor @preconcurrency public func updateUIViewController(_ uiViewController: M2Kit.M2WebVC, context: M2Kit.M2WebView.Context)
|
||||||
|
public typealias Body = Swift.Never
|
||||||
|
public typealias Coordinator = Swift.Void
|
||||||
|
public typealias UIViewControllerType = M2Kit.M2WebVC
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2HTTP {
|
public enum M2YTIDType : Swift.String {
|
||||||
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
case video
|
||||||
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
case playlist
|
||||||
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public init?(rawValue: Swift.String)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.String
|
||||||
|
public var rawValue: Swift.String {
|
||||||
|
get
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor public struct M2Feedback {
|
|
||||||
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
public let m2Version: Swift.String
|
public struct M2YT {
|
||||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
extension M2Kit.M2Backup : Swift.Sendable {}
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
extension M2Kit.M2Utils : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
extension M2Kit.M2Radio : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetMonitor : Swift.Sendable {}
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
extension M2Kit.M2Musi : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2K : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Image : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2HTTP : Swift.Sendable {}
|
|
||||||
extension M2Kit.M2Feedback : Swift.Sendable {}
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -6,51 +6,51 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>Headers/M2Kit-Swift.h</key>
|
<key>Headers/M2Kit-Swift.h</key>
|
||||||
<data>
|
<data>
|
||||||
0DzI04NNpL+f+PpBMmGt2ucfr08=
|
NgFFzUiog7sDYxU5OlrS370BZo4=
|
||||||
</data>
|
</data>
|
||||||
<key>Info.plist</key>
|
<key>Info.plist</key>
|
||||||
<data>
|
<data>
|
||||||
nbgOgZ6ExPLh/tiXfYMgQZ1KSLY=
|
TtQfsetDBxYJCGgyVEa8un9FE4s=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
||||||
<data>
|
<data>
|
||||||
AdQ+JqGLybXFQLeN3cYfpxbuyiw=
|
Ed/i99wz3LyUa25XulI6c+Et+B4=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
VDKoPT2jgiU9MWk5/tEFoH6CgKQ=
|
lDlNNnY5wOxTlAgEiAxt99OfPcs=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||||
<data>
|
<data>
|
||||||
gdF3A01F70MgSYY6TcauxeB6Yb4=
|
gVYvs0pwMssUqEMscLojXLYHZH0=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
VDKoPT2jgiU9MWk5/tEFoH6CgKQ=
|
lDlNNnY5wOxTlAgEiAxt99OfPcs=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||||
<data>
|
<data>
|
||||||
CEjsPxvhOqv5eiG9BlsrNemdHBw=
|
G1FRzf6ZV4IkWCA9a7pbhdCdclE=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
||||||
<data>
|
<data>
|
||||||
AdQ+JqGLybXFQLeN3cYfpxbuyiw=
|
Ed/i99wz3LyUa25XulI6c+Et+B4=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
StygdiFwF75hM4sWtlyoX83X9lo=
|
xLO/XSNQEUWbeMYrSbpcsMmgKi0=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||||
<data>
|
<data>
|
||||||
E4+MYkNIakULG2kOsbX5R5wKNh8=
|
0EtydSwm6lLpBuiG8GzpXOmAabw=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
StygdiFwF75hM4sWtlyoX83X9lo=
|
xLO/XSNQEUWbeMYrSbpcsMmgKi0=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||||
<data>
|
<data>
|
||||||
z/iQ9inWDgO/II810KdsdEhgYc4=
|
/ioKYDgEFJ0WUalE7UXS+OIW+rc=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/module.modulemap</key>
|
<key>Modules/module.modulemap</key>
|
||||||
<data>
|
<data>
|
||||||
@ -61,131 +61,83 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>Headers/M2Kit-Swift.h</key>
|
<key>Headers/M2Kit-Swift.h</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
0DzI04NNpL+f+PpBMmGt2ucfr08=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
A78VD7yJ8np9LrqrgAjc2yDuCr4tAMI5mBS7Cr04X4k=
|
B6/7i532nXZ2zw4EoaQs8rldJSlkv4J+tYwBcDYWcdI=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
AdQ+JqGLybXFQLeN3cYfpxbuyiw=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
13sjfxkL/3ddI6rGS4avncdVKqpeRUAXIghgUAs/Pno=
|
D3WtrO0W0XYeOta8TNEsZng2r7UoKZ5e1cBY7dixkoY=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
VDKoPT2jgiU9MWk5/tEFoH6CgKQ=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
g/H/cTaqDHVeU+34uIi3ZBlz9Lk2Ibm/kAngvNsiyHc=
|
Hs+tRJDEOSsTUQTwX+IqgQq7/nYltbFMUV+X6HbnJEM=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
gdF3A01F70MgSYY6TcauxeB6Yb4=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
WYW05vsCCvv1bcg/KiVT0otmMDnuiZIACMiUEGs78zA=
|
PU+xuDu6OKX+o/mc/0yk1cHnpXsBf1yU4whAUyzfA2Q=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
VDKoPT2jgiU9MWk5/tEFoH6CgKQ=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
g/H/cTaqDHVeU+34uIi3ZBlz9Lk2Ibm/kAngvNsiyHc=
|
Hs+tRJDEOSsTUQTwX+IqgQq7/nYltbFMUV+X6HbnJEM=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
CEjsPxvhOqv5eiG9BlsrNemdHBw=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
7BkNPS0J+wJ937ynpnJuaNPM54ycsZboj5yd/AM+DDQ=
|
3NGrDrSU+1g6LWcqnlyFF+0m1nkh3fvfAWtkNtyf39Y=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
AdQ+JqGLybXFQLeN3cYfpxbuyiw=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
13sjfxkL/3ddI6rGS4avncdVKqpeRUAXIghgUAs/Pno=
|
D3WtrO0W0XYeOta8TNEsZng2r7UoKZ5e1cBY7dixkoY=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
StygdiFwF75hM4sWtlyoX83X9lo=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
P8EYgbErGuy4QCJdSbGoPGppB+ZiHowKV8dfaIrc/gI=
|
vQYO42syKKvlzqb6BVAmVX9B6XN0Ss58MzTn1zlBjlo=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
E4+MYkNIakULG2kOsbX5R5wKNh8=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
nPRIxJ+NN8xOTcpxpgiZxk6wf8M+hahl9+jGTvIzYU0=
|
EH2UY0mq4fSqzWGrTPQvECMr57ohcA07ma0PY6w8F50=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
StygdiFwF75hM4sWtlyoX83X9lo=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
P8EYgbErGuy4QCJdSbGoPGppB+ZiHowKV8dfaIrc/gI=
|
vQYO42syKKvlzqb6BVAmVX9B6XN0Ss58MzTn1zlBjlo=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
z/iQ9inWDgO/II810KdsdEhgYc4=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
2FhFF+uNjKTzjxlZl1IABkz0VEtsxWo5ibaUdBLNpMk=
|
vGHvrCYrs6EnoT8sSYVX3TqJryFu//Ceo356fdScQXg=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/module.modulemap</key>
|
<key>Modules/module.modulemap</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash</key>
|
|
||||||
<data>
|
|
||||||
n8UZhGfofoCUF2Y9arJmb3ut22Y=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
P0GTeNVvyR+ml51cVmqnRlvKjJYeeF4GdLyZwo9Knw4=
|
P0GTeNVvyR+ml51cVmqnRlvKjJYeeF4GdLyZwo9Knw4=
|
||||||
|
|||||||
Reference in New Issue
Block a user