5.5
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#if 0
|
||||
#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 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
||||
#ifndef M2KIT_SWIFT_H
|
||||
#define M2KIT_SWIFT_H
|
||||
#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-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 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.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-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
|
||||
import Combine
|
||||
import CommonCrypto
|
||||
import Foundation
|
||||
@ -15,51 +15,24 @@ import WebKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
public let m2Version: Swift.String
|
||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||
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)
|
||||
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||
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 {
|
||||
}
|
||||
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)
|
||||
#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)
|
||||
#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)
|
||||
#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)
|
||||
#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)
|
||||
#endif
|
||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
}
|
||||
extension M2Kit.M2API {
|
||||
@ -74,40 +47,162 @@ extension M2Kit.M2API {
|
||||
}
|
||||
extension M2Kit.M2API {
|
||||
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)
|
||||
#endif
|
||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||
}
|
||||
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)
|
||||
#endif
|
||||
}
|
||||
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||
@_Concurrency.MainActor @preconcurrency public init()
|
||||
@_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
|
||||
extension M2Kit.M2API {
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||
#endif
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||
#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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||
@objc deinit
|
||||
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]]
|
||||
}
|
||||
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.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.M2Utils {
|
||||
public static var countryCode: Swift.String {
|
||||
extension M2Kit.M2API {
|
||||
@_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
|
||||
}
|
||||
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
|
||||
}
|
||||
extension M2Kit.M2Utils {
|
||||
public static func randomCode() -> Swift.String
|
||||
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
|
||||
}
|
||||
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 M2K {
|
||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> 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 struct M2NetMonitor {
|
||||
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||
public var isConnected: Swift.Bool {
|
||||
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 {
|
||||
public static var option10: Swift.String {
|
||||
@ -382,57 +477,37 @@ extension M2Kit.M2Utils {
|
||||
}
|
||||
@objc deinit
|
||||
}
|
||||
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 {
|
||||
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 {
|
||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||
}
|
||||
extension M2Kit.M2Radio {
|
||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||
}
|
||||
extension M2Kit.M2Radio {
|
||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||
}
|
||||
public struct M2NetMonitor {
|
||||
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||
public var isConnected: Swift.Bool {
|
||||
extension M2Kit.M2Utils {
|
||||
public static var countryCode: Swift.String {
|
||||
get
|
||||
}
|
||||
public func stop()
|
||||
}
|
||||
public struct M2Musi {
|
||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
extension M2Kit.M2Utils {
|
||||
public static func randomCode() -> Swift.String
|
||||
}
|
||||
public struct M2K {
|
||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||
@_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
|
||||
}
|
||||
public struct M2Image {
|
||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||
}
|
||||
public struct M2HTTP {
|
||||
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||
}
|
||||
public struct M2Feedback {
|
||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||
@_Concurrency.MainActor @preconcurrency public init()
|
||||
@_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
|
||||
}
|
||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||
|
||||
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
// 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 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.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-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
|
||||
import Combine
|
||||
import CommonCrypto
|
||||
import Foundation
|
||||
@ -15,51 +15,24 @@ import WebKit
|
||||
import _Concurrency
|
||||
import _StringProcessing
|
||||
import _SwiftConcurrencyShims
|
||||
public let m2Version: Swift.String
|
||||
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
|
||||
@_Concurrency.MainActor public func setLogLevel(_ value: Swift.Int)
|
||||
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)
|
||||
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||
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 {
|
||||
}
|
||||
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)
|
||||
#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)
|
||||
#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)
|
||||
#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)
|
||||
#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)
|
||||
#endif
|
||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
}
|
||||
extension M2Kit.M2API {
|
||||
@ -74,40 +47,162 @@ extension M2Kit.M2API {
|
||||
}
|
||||
extension M2Kit.M2API {
|
||||
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)
|
||||
#endif
|
||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
||||
}
|
||||
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)
|
||||
#endif
|
||||
}
|
||||
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||
@_Concurrency.MainActor @preconcurrency public init()
|
||||
@_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
|
||||
extension M2Kit.M2API {
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||
#endif
|
||||
#if compiler(>=5.3) && $NonescapableTypes
|
||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
||||
#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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||
@objc deinit
|
||||
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]]
|
||||
}
|
||||
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.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.M2Utils {
|
||||
public static var countryCode: Swift.String {
|
||||
extension M2Kit.M2API {
|
||||
@_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
|
||||
}
|
||||
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
|
||||
}
|
||||
extension M2Kit.M2Utils {
|
||||
public static func randomCode() -> Swift.String
|
||||
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
|
||||
}
|
||||
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 M2K {
|
||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> 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 struct M2NetMonitor {
|
||||
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||
public var isConnected: Swift.Bool {
|
||||
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 {
|
||||
public static var option10: Swift.String {
|
||||
@ -382,57 +477,37 @@ extension M2Kit.M2Utils {
|
||||
}
|
||||
@objc deinit
|
||||
}
|
||||
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 {
|
||||
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 {
|
||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||
}
|
||||
extension M2Kit.M2Radio {
|
||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
||||
}
|
||||
extension M2Kit.M2Radio {
|
||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||
}
|
||||
public struct M2NetMonitor {
|
||||
public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
|
||||
public var isConnected: Swift.Bool {
|
||||
extension M2Kit.M2Utils {
|
||||
public static var countryCode: Swift.String {
|
||||
get
|
||||
}
|
||||
public func stop()
|
||||
}
|
||||
public struct M2Musi {
|
||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||
extension M2Kit.M2Utils {
|
||||
public static func randomCode() -> Swift.String
|
||||
}
|
||||
public struct M2K {
|
||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||
@_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
|
||||
}
|
||||
public struct M2Image {
|
||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
||||
}
|
||||
public struct M2HTTP {
|
||||
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
||||
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
||||
}
|
||||
public struct M2Feedback {
|
||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||
@_Concurrency.MainActor @preconcurrency public init()
|
||||
@_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
|
||||
}
|
||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||
|
||||
Reference in New Issue
Block a user