Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c29efe1e30 | |||
| 6f123d9191 | |||
| 7175167bc2 | |||
| 6629cdff9a | |||
| 262eb45dee | |||
| f500a4d471 | |||
| 8a825c7e97 | |||
| 2370cffc13 | |||
| 5902e1f31d | |||
| db4d9b0d71 | |||
| 890670b88b |
@ -18,23 +18,6 @@
|
|||||||
<key>SupportedPlatform</key>
|
<key>SupportedPlatform</key>
|
||||||
<string>ios</string>
|
<string>ios</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
|
||||||
<key>BinaryPath</key>
|
|
||||||
<string>M2Kit.framework/M2Kit</string>
|
|
||||||
<key>LibraryIdentifier</key>
|
|
||||||
<string>ios-arm64_x86_64-simulator</string>
|
|
||||||
<key>LibraryPath</key>
|
|
||||||
<string>M2Kit.framework</string>
|
|
||||||
<key>SupportedArchitectures</key>
|
|
||||||
<array>
|
|
||||||
<string>arm64</string>
|
|
||||||
<string>x86_64</string>
|
|
||||||
</array>
|
|
||||||
<key>SupportedPlatform</key>
|
|
||||||
<string>ios</string>
|
|
||||||
<key>SupportedPlatformVariant</key>
|
|
||||||
<string>simulator</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 +35,23 @@
|
|||||||
<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_x86_64-simulator</string>
|
||||||
|
<key>LibraryPath</key>
|
||||||
|
<string>M2Kit.framework</string>
|
||||||
|
<key>SupportedArchitectures</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
<string>x86_64</string>
|
||||||
|
</array>
|
||||||
|
<key>SupportedPlatform</key>
|
||||||
|
<string>ios</string>
|
||||||
|
<key>SupportedPlatformVariant</key>
|
||||||
|
<string>simulator</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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
#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,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,26 +15,622 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
case unsupportedType
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
case indexOutOfBounds
|
||||||
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
case elementTooDeep
|
||||||
@objc deinit
|
case wrongType
|
||||||
}
|
case notExist
|
||||||
public struct M2Utils {
|
case invalidJSON
|
||||||
public static func workFor(trackID: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
public init?(rawValue: Swift.Int)
|
||||||
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
#endif
|
||||||
public static func deleteDataOf(trackID: Swift.String)
|
public typealias RawValue = Swift.Int
|
||||||
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
public var rawValue: Swift.Int {
|
||||||
}
|
|
||||||
extension M2Kit.M2Utils {
|
|
||||||
public static var countryCode: Swift.String {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
public static func randomCode() -> Swift.String
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
|
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 {
|
||||||
|
public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
|
||||||
|
public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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]]
|
||||||
|
}
|
||||||
|
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]
|
||||||
|
#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
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct M2NetMonitor {
|
||||||
|
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 {
|
||||||
@ -307,116 +905,30 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
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 M2Musi {
|
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public struct M2K {
|
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
|
||||||
}
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
public func setServiceType(_ type: Swift.String)
|
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
|
||||||
public struct M2Backup {
|
|
||||||
public static var backupCode: Swift.String {
|
|
||||||
get
|
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 {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static func randomCode() -> 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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
#endif
|
||||||
}
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
extension M2Kit.M2API {
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
#endif
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
@objc deinit
|
||||||
}
|
|
||||||
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 {
|
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[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)
|
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[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)
|
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
|
|
||||||
public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor @preconcurrency public init()
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@ -426,4 +938,36 @@ extension M2Kit.M2API {
|
|||||||
public typealias Coordinator = Swift.Void
|
public typealias Coordinator = Swift.Void
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
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.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
Binary file not shown.
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,26 +15,622 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
case unsupportedType
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
case indexOutOfBounds
|
||||||
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
case elementTooDeep
|
||||||
@objc deinit
|
case wrongType
|
||||||
}
|
case notExist
|
||||||
public struct M2Utils {
|
case invalidJSON
|
||||||
public static func workFor(trackID: Swift.String)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
public init?(rawValue: Swift.Int)
|
||||||
public static func checkExisted(trackID: Swift.String) -> Swift.Bool
|
#endif
|
||||||
public static func deleteDataOf(trackID: Swift.String)
|
public typealias RawValue = Swift.Int
|
||||||
public static func filePathOf(trackID: Swift.String) -> Swift.String
|
public var rawValue: Swift.Int {
|
||||||
}
|
|
||||||
extension M2Kit.M2Utils {
|
|
||||||
public static var countryCode: Swift.String {
|
|
||||||
get
|
get
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Utils {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
public static func randomCode() -> Swift.String
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
|
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 {
|
||||||
|
public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
}
|
||||||
|
extension M2Kit.M2API {
|
||||||
|
public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
|
||||||
|
public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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]]
|
||||||
|
}
|
||||||
|
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]
|
||||||
|
#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
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct M2NetMonitor {
|
||||||
|
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 {
|
||||||
@ -307,116 +905,30 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
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 M2Musi {
|
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public struct M2K {
|
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
|
||||||
}
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
public func setServiceType(_ type: Swift.String)
|
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
|
||||||
public struct M2Backup {
|
|
||||||
public static var backupCode: Swift.String {
|
|
||||||
get
|
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 {
|
extension M2Kit.M2Utils {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static func randomCode() -> 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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
#endif
|
||||||
}
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
extension M2Kit.M2API {
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
#endif
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
@objc deinit
|
||||||
}
|
|
||||||
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 {
|
|
||||||
public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[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)
|
|
||||||
public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[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)
|
|
||||||
public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
|
||||||
public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
|
|
||||||
public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
|
|
||||||
public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
|
|
||||||
public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
|
|
||||||
}
|
|
||||||
extension M2Kit.M2API {
|
|
||||||
public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String) -> Swift.Void)
|
|
||||||
}
|
}
|
||||||
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
@_Concurrency.MainActor @preconcurrency public init()
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
@ -426,4 +938,36 @@ extension M2Kit.M2API {
|
|||||||
public typealias Coordinator = Swift.Void
|
public typealias Coordinator = Swift.Void
|
||||||
public typealias UIViewControllerType = M2Kit.M2WebVC
|
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.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
@ -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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
#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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
#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,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,54 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2Feedback {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public let m2Version: Swift.String
|
case elementTooDeep
|
||||||
public func setServiceType(_ type: Swift.String)
|
case wrongType
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
case notExist
|
||||||
public struct M2Backup {
|
case invalidJSON
|
||||||
public static var backupCode: Swift.String {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -75,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -383,47 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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 M2K {
|
public struct M2YT {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
}
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
public struct M2Image {
|
#endif
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
#endif
|
||||||
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?
|
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
Binary file not shown.
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,54 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2Feedback {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public let m2Version: Swift.String
|
case elementTooDeep
|
||||||
public func setServiceType(_ type: Swift.String)
|
case wrongType
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
case notExist
|
||||||
public struct M2Backup {
|
case invalidJSON
|
||||||
public static var backupCode: Swift.String {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -75,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -383,47 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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 M2K {
|
public struct M2YT {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
}
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
public struct M2Image {
|
#endif
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
#endif
|
||||||
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?
|
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,54 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2Feedback {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public let m2Version: Swift.String
|
case elementTooDeep
|
||||||
public func setServiceType(_ type: Swift.String)
|
case wrongType
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
case notExist
|
||||||
public struct M2Backup {
|
case invalidJSON
|
||||||
public static var backupCode: Swift.String {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -75,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -383,47 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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 M2K {
|
public struct M2YT {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
}
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
public struct M2Image {
|
#endif
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
#endif
|
||||||
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?
|
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
Binary file not shown.
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,54 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2Feedback {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public let m2Version: Swift.String
|
case elementTooDeep
|
||||||
public func setServiceType(_ type: Swift.String)
|
case wrongType
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
case notExist
|
||||||
public struct M2Backup {
|
case invalidJSON
|
||||||
public static var backupCode: Swift.String {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -75,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -383,47 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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 M2K {
|
public struct M2YT {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
}
|
public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
|
||||||
public struct M2Image {
|
#endif
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
}
|
#endif
|
||||||
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?
|
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>BuildMachineOSBuild</key>
|
<key>BuildMachineOSBuild</key>
|
||||||
<string>24G90</string>
|
<string>25C56</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.1</string>
|
<string>5.13</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>25C57</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.2</string>
|
||||||
<key>DTSDKBuild</key>
|
<key>DTSDKBuild</key>
|
||||||
<string>24F74</string>
|
<string>25C57</string>
|
||||||
<key>DTSDKName</key>
|
<key>DTSDKName</key>
|
||||||
<string>macosx15.5</string>
|
<string>macosx26.2</string>
|
||||||
<key>DTXcode</key>
|
<key>DTXcode</key>
|
||||||
<string>1640</string>
|
<string>2620</string>
|
||||||
<key>DTXcodeBuild</key>
|
<key>DTXcodeBuild</key>
|
||||||
<string>16F6</string>
|
<string>17C52</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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
#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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
#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,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,67 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2K {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public struct M2Image {
|
case elementTooDeep
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
case wrongType
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
case notExist
|
||||||
}
|
case invalidJSON
|
||||||
public struct M2HTTP {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public init?(rawValue: Swift.Int)
|
||||||
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
#endif
|
||||||
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public typealias RawValue = Swift.Int
|
||||||
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public var rawValue: Swift.Int {
|
||||||
}
|
|
||||||
public struct M2Feedback {
|
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
public func setServiceType(_ type: Swift.String)
|
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
|
||||||
public struct M2Backup {
|
|
||||||
public static var backupCode: Swift.String {
|
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -88,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -396,34 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
Binary file not shown.
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,67 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2K {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public struct M2Image {
|
case elementTooDeep
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
case wrongType
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
case notExist
|
||||||
}
|
case invalidJSON
|
||||||
public struct M2HTTP {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public init?(rawValue: Swift.Int)
|
||||||
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
#endif
|
||||||
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public typealias RawValue = Swift.Int
|
||||||
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public var rawValue: Swift.Int {
|
||||||
}
|
|
||||||
public struct M2Feedback {
|
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
public func setServiceType(_ type: Swift.String)
|
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
|
||||||
public struct M2Backup {
|
|
||||||
public static var backupCode: Swift.String {
|
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -88,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -396,34 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,67 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2K {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public struct M2Image {
|
case elementTooDeep
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
case wrongType
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
case notExist
|
||||||
}
|
case invalidJSON
|
||||||
public struct M2HTTP {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public init?(rawValue: Swift.Int)
|
||||||
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
#endif
|
||||||
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public typealias RawValue = Swift.Int
|
||||||
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public var rawValue: Swift.Int {
|
||||||
}
|
|
||||||
public struct M2Feedback {
|
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
public func setServiceType(_ type: Swift.String)
|
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
|
||||||
public struct M2Backup {
|
|
||||||
public static var backupCode: Swift.String {
|
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -88,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -396,34 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
Binary file not shown.
@ -1,11 +1,13 @@
|
|||||||
// 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.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
||||||
// 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.3
|
||||||
import Combine
|
import Combine
|
||||||
import CommonCrypto
|
import CommonCrypto
|
||||||
import Foundation
|
import Foundation
|
||||||
import JavaScriptCore
|
import JavaScriptCore
|
||||||
|
import Network
|
||||||
|
import StoreKit
|
||||||
import Swift
|
import Swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
import UIKit
|
||||||
@ -13,67 +15,425 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
public struct M2K {
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
case unsupportedType
|
||||||
}
|
case indexOutOfBounds
|
||||||
public struct M2Image {
|
case elementTooDeep
|
||||||
public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
case wrongType
|
||||||
public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
|
case notExist
|
||||||
}
|
case invalidJSON
|
||||||
public struct M2HTTP {
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public init?(rawValue: Swift.Int)
|
||||||
public static func getData(url: Foundation.URL) async -> Foundation.Data?
|
#endif
|
||||||
public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
public typealias RawValue = Swift.Int
|
||||||
public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
|
public var rawValue: Swift.Int {
|
||||||
}
|
|
||||||
public struct M2Feedback {
|
|
||||||
public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
|
||||||
}
|
|
||||||
public let m2Version: Swift.String
|
|
||||||
public func setServiceType(_ type: Swift.String)
|
|
||||||
public func setLogLevel(_ value: Swift.Int)
|
|
||||||
public struct M2Backup {
|
|
||||||
public static var backupCode: Swift.String {
|
|
||||||
get
|
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 {
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
public static var errorDomain: Swift.String {
|
||||||
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_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?)
|
public var errorCode: Swift.Int {
|
||||||
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
|
get
|
||||||
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Type : Swift.Int {
|
||||||
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
case number
|
||||||
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
|
case string
|
||||||
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
|
case bool
|
||||||
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public struct JSON {
|
||||||
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public enum Index<T> : Swift.Comparable {
|
||||||
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
|
case array(Swift.Int)
|
||||||
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
}
|
}
|
||||||
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 {
|
||||||
@ -88,40 +448,189 @@ 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 @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency 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 @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
extension M2Kit.M2API {
|
||||||
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
|
||||||
@_Concurrency.MainActor @preconcurrency @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 @preconcurrency @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]]
|
||||||
}
|
}
|
||||||
public struct M2Utils {
|
extension M2Kit.M2API {
|
||||||
public static func workFor(trackID: Swift.String)
|
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
|
||||||
public static let workForChangedNotification: Foundation.Notification.Name
|
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
|
||||||
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.M2Utils {
|
extension M2Kit.M2API {
|
||||||
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
|
||||||
|
}
|
||||||
|
public struct M2Backup {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func uploadBackup(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 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
|
||||||
|
}
|
||||||
|
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 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 {
|
||||||
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 {
|
||||||
@ -396,34 +905,69 @@ extension M2Kit.M2Utils {
|
|||||||
}
|
}
|
||||||
@objc deinit
|
@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 {
|
extension M2Kit.M2Utils {
|
||||||
public static func countriesSupported(result: @escaping (_ countries: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static var countryCode: Swift.String {
|
||||||
public static func getHTTPHeaderMT() -> [Swift.String : Swift.String]
|
get
|
||||||
public static func changeRadioCountryCode(_ code: Swift.String)
|
}
|
||||||
public static func getCurrentRadioCountryCode() -> Swift.String
|
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
extension M2Kit.M2Utils {
|
||||||
public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
public static func randomCode() -> Swift.String
|
||||||
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 {
|
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class M2WebVC : UIKit.UIViewController {
|
||||||
public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
||||||
public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
|
||||||
public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
#endif
|
||||||
public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
|
||||||
|
#endif
|
||||||
|
@objc deinit
|
||||||
}
|
}
|
||||||
extension M2Kit.M2Radio {
|
@_Concurrency.MainActor @preconcurrency public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
|
||||||
public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_Concurrency.MainActor @preconcurrency public init()
|
||||||
public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
|
@_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
|
||||||
}
|
}
|
||||||
public struct M2Musi {
|
public enum M2YTIDType : Swift.String {
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
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.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Equatable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.Hashable {}
|
||||||
|
extension M2Kit.M2YTIDType : Swift.RawRepresentable {}
|
||||||
|
|||||||
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=
|
7Rdmc7huiI6sKd5bwPLEoLlkiYc=
|
||||||
</data>
|
</data>
|
||||||
<key>Info.plist</key>
|
<key>Info.plist</key>
|
||||||
<data>
|
<data>
|
||||||
Y5BBm/V8XQfWc/en8OxeFTic4+I=
|
jheJoUGO4iqde2E3il+GAeTR7SE=
|
||||||
</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>
|
||||||
eDvMdCTJ8UptXP0UbbTDkw02GwA=
|
ZWjWd9Ddd8a++8MjenTD5v+oEVQ=
|
||||||
</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>
|
||||||
6GtqjaxdEBwa/PtgyoLxXW8QxdY=
|
5sxhWnS8papnp5y6r5xs1uwNYoQ=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||||
<data>
|
<data>
|
||||||
8Lny89H+ZQ5TIHO0qFCSnu9gtTE=
|
OOZmR9BumBD3ntGGxE8kprctaQk=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
6GtqjaxdEBwa/PtgyoLxXW8QxdY=
|
5sxhWnS8papnp5y6r5xs1uwNYoQ=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||||
<data>
|
<data>
|
||||||
kFY6Fzss66esHfHhDrI5QZSv3Zg=
|
lTbWQ4WRBlLJTHXjySQJtrUhKHc=
|
||||||
</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>
|
||||||
eDvMdCTJ8UptXP0UbbTDkw02GwA=
|
ZWjWd9Ddd8a++8MjenTD5v+oEVQ=
|
||||||
</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>
|
||||||
srYraRA1sf8qvL63+s9eDSZOM6Q=
|
GzKPuZKvv0h/IobM+/GLKD8Hcqc=
|
||||||
</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>
|
||||||
vQijfGMYMqswnn24oMWgIJPeCJU=
|
0MZ45LpAJAoX653u3M48qdUcqTw=
|
||||||
</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>
|
||||||
srYraRA1sf8qvL63+s9eDSZOM6Q=
|
GzKPuZKvv0h/IobM+/GLKD8Hcqc=
|
||||||
</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>
|
||||||
JaG2/dWmFFhpFGYj2XKqLToLMjw=
|
pGC40GZAAJjUCwlmI5ydzlBrdNk=
|
||||||
</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=
|
SzL7aZykET1tYTLu2DE+CPYFwYoxjE/pNa2/+qsMmJk=
|
||||||
</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>
|
|
||||||
eDvMdCTJ8UptXP0UbbTDkw02GwA=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
K8KxP3nTgQ0QoUgFVZmrqyFZMXt2wzMNdo1NrSUaIhs=
|
J6QRRf0twY0aA3Sl8fNXDen/u5i5YDL6jHmXE651MbI=
|
||||||
</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>
|
|
||||||
6GtqjaxdEBwa/PtgyoLxXW8QxdY=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
w4qOvOAzA+pz+hyLH236Te+KtGE4AdS+5mrAw1DrwD0=
|
PhxWLBRJpdJdb5+yaudxdG3QWY3v6nin6IRgwCDrqi0=
|
||||||
</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>
|
|
||||||
8Lny89H+ZQ5TIHO0qFCSnu9gtTE=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
md034p3WxywFdp17f2kts3tDuzMIocgni4HtiJok4tI=
|
JWytsc6a5e2DLv+8sHV3qqJ+iSfhru1DvtCpuCURMgk=
|
||||||
</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>
|
|
||||||
6GtqjaxdEBwa/PtgyoLxXW8QxdY=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
w4qOvOAzA+pz+hyLH236Te+KtGE4AdS+5mrAw1DrwD0=
|
PhxWLBRJpdJdb5+yaudxdG3QWY3v6nin6IRgwCDrqi0=
|
||||||
</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>
|
|
||||||
kFY6Fzss66esHfHhDrI5QZSv3Zg=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
7/zsfNXiPT/Q6Uqh0cuSrtfkH56hMYyOqVm4oW0ryQo=
|
NSIBXS425b7L8tlghOlGlz2kMPf58QIsosnziztVH2w=
|
||||||
</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>
|
|
||||||
eDvMdCTJ8UptXP0UbbTDkw02GwA=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
K8KxP3nTgQ0QoUgFVZmrqyFZMXt2wzMNdo1NrSUaIhs=
|
J6QRRf0twY0aA3Sl8fNXDen/u5i5YDL6jHmXE651MbI=
|
||||||
</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>
|
|
||||||
srYraRA1sf8qvL63+s9eDSZOM6Q=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
aIs74CBCC1KdPTtz1JcWgKuzjYBmJYCL4n2eXZjKHZ0=
|
kxYTcFx/gWvznH2oAtSKJUOYXXcP6hdqjw/lmlKAxBk=
|
||||||
</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>
|
|
||||||
vQijfGMYMqswnn24oMWgIJPeCJU=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
WnK+wCQ38mfYnoC3ZLjz37/38q0Thc0yobf9WuZkwUw=
|
03zWpLNKuxnWEvlhvPNu6Xg+OmgR9ikhwbr0pXRLWe4=
|
||||||
</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>
|
|
||||||
srYraRA1sf8qvL63+s9eDSZOM6Q=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
aIs74CBCC1KdPTtz1JcWgKuzjYBmJYCL4n2eXZjKHZ0=
|
kxYTcFx/gWvznH2oAtSKJUOYXXcP6hdqjw/lmlKAxBk=
|
||||||
</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>
|
|
||||||
JaG2/dWmFFhpFGYj2XKqLToLMjw=
|
|
||||||
</data>
|
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
0SHWMM3eQO+IdgiVSFscExeBsX6ELqHh1SoshucNIH8=
|
M3ytx1r9QYnAW2/WKOuz0sW6XcX1kkgfd8hbF1VbsKk=
|
||||||
</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