@shortkitsdk/react-native 0.2.25 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/libs/shortkit-release.aar +0 -0
- package/ios/ShortKitBridge.swift +42 -4
- package/ios/ShortKitFeedView.swift +50 -4
- package/ios/ShortKitFeedViewManager.mm +2 -0
- package/ios/ShortKitModule.mm +13 -3
- package/ios/ShortKitSDK.xcframework/Info.plist +5 -5
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Info.plist +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +1946 -218
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +51 -6
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +51 -6
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +9 -9
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Info.plist +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1946 -218
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +51 -6
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -6
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1946 -218
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +51 -6
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -6
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +17 -17
- package/package.json +1 -1
- package/src/ShortKitFeed.tsx +42 -3
- package/src/ShortKitProvider.tsx +2 -1
- package/src/specs/NativeShortKitModule.ts +17 -1
- package/src/specs/ShortKitFeedViewNativeComponent.ts +3 -0
- package/src/types.ts +58 -2
|
@@ -244,6 +244,7 @@ public struct FeedConfig : Swift.Codable {
|
|
|
244
244
|
public var surveyOverlay: ShortKitSDK.SurveyOverlayMode
|
|
245
245
|
public var adOverlay: ShortKitSDK.AdOverlayMode
|
|
246
246
|
public var liveOverlay: ShortKitSDK.LiveOverlayMode
|
|
247
|
+
public var liveRoomMask: ShortKitSDK.LiveRoomMaskMode
|
|
247
248
|
public var muteOnStart: Swift.Bool
|
|
248
249
|
public var autoplay: Swift.Bool
|
|
249
250
|
public var feedSource: ShortKitSDK.FeedSource
|
|
@@ -251,9 +252,9 @@ public struct FeedConfig : Swift.Codable {
|
|
|
251
252
|
public var pullToRefreshEnabled: Swift.Bool
|
|
252
253
|
public var filter: ShortKitSDK.FeedFilter?
|
|
253
254
|
public var preload: ShortKitSDK.FeedPreload?
|
|
254
|
-
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, liveOverlay: ShortKitSDK.LiveOverlayMode = .default, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
255
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
255
|
+
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, liveOverlay: ShortKitSDK.LiveOverlayMode = .default, liveRoomMask: ShortKitSDK.LiveRoomMaskMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
256
256
|
public init(from decoder: any Swift.Decoder) throws
|
|
257
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
257
258
|
}
|
|
258
259
|
public enum FeedMaskMode {
|
|
259
260
|
case none
|
|
@@ -262,6 +263,13 @@ public enum FeedMaskMode {
|
|
|
262
263
|
extension ShortKitSDK.FeedMaskMode : Swift.Equatable {
|
|
263
264
|
public static func == (lhs: ShortKitSDK.FeedMaskMode, rhs: ShortKitSDK.FeedMaskMode) -> Swift.Bool
|
|
264
265
|
}
|
|
266
|
+
public enum LiveRoomMaskMode {
|
|
267
|
+
case none
|
|
268
|
+
case custom(@Sendable () -> any UIKit.UIView & ShortKitSDK.LiveRoomMask)
|
|
269
|
+
}
|
|
270
|
+
extension ShortKitSDK.LiveRoomMaskMode : Swift.Equatable {
|
|
271
|
+
public static func == (lhs: ShortKitSDK.LiveRoomMaskMode, rhs: ShortKitSDK.LiveRoomMaskMode) -> Swift.Bool
|
|
272
|
+
}
|
|
265
273
|
public enum VideoOverlayMode {
|
|
266
274
|
case none
|
|
267
275
|
case custom(@Sendable () -> any UIKit.UIView & ShortKitSDK.FeedOverlay)
|
|
@@ -419,6 +427,7 @@ public enum ShortKitDownloadError : Swift.Error {
|
|
|
419
427
|
case cancelled
|
|
420
428
|
}
|
|
421
429
|
@_hasMissingDesignatedInitializers final public class FeedPreload : @unchecked Swift.Sendable {
|
|
430
|
+
public init(immediateItems items: [ShortKitSDK.FeedInput])
|
|
422
431
|
@objc deinit
|
|
423
432
|
}
|
|
424
433
|
@_Concurrency.MainActor @preconcurrency public struct ShortKitFeedView : SwiftUI.UIViewControllerRepresentable {
|
|
@@ -438,9 +447,17 @@ public enum ShortKitDownloadError : Swift.Error {
|
|
|
438
447
|
@_Concurrency.MainActor @preconcurrency public var onDismiss: (() -> Swift.Void)?
|
|
439
448
|
@_Concurrency.MainActor @preconcurrency public var onRemainingContentCountChange: ((Swift.Int) -> Swift.Void)?
|
|
440
449
|
@_Concurrency.MainActor @preconcurrency public var onFeedReady: (() -> Swift.Void)?
|
|
450
|
+
public struct VideoCarouselCellTapPayload {
|
|
451
|
+
public let id: Swift.String
|
|
452
|
+
public let index: Swift.Int
|
|
453
|
+
public let pageIndex: Swift.Int
|
|
454
|
+
}
|
|
455
|
+
@_Concurrency.MainActor @preconcurrency public var onVideoCarouselCellTap: ((ShortKitSDK.ShortKitFeedViewController.VideoCarouselCellTapPayload) -> Swift.Void)?
|
|
456
|
+
@_Concurrency.MainActor @preconcurrency public var onRefreshStateChanged: ((ShortKitSDK.ShortKitRefreshState) -> Swift.Void)?
|
|
441
457
|
@_Concurrency.MainActor @preconcurrency public var seedThumbnail: UIKit.UIImage?
|
|
442
458
|
@_Concurrency.MainActor @preconcurrency public init(shortKit: ShortKitSDK.ShortKit, config: ShortKitSDK.FeedConfig, startAtItemId: Swift.String? = nil)
|
|
443
|
-
@_Concurrency.MainActor public func setFeedItems(_ items: [ShortKitSDK.FeedInput])
|
|
459
|
+
@_Concurrency.MainActor public func setFeedItems(_ items: [ShortKitSDK.FeedInput], startAtId: Swift.String? = nil)
|
|
460
|
+
@_Concurrency.MainActor public func scrollToItem(id: Swift.String, animated: Swift.Bool)
|
|
444
461
|
@_Concurrency.MainActor public func appendFeedItems(_ items: [ShortKitSDK.FeedInput])
|
|
445
462
|
@_Concurrency.MainActor public func applyFilter(_ filter: ShortKitSDK.FeedFilter?)
|
|
446
463
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
|
@@ -579,7 +596,8 @@ public struct ContentItem : Swift.Codable, Swift.Equatable, @unchecked Swift.Sen
|
|
|
579
596
|
public var liveStreamId: Swift.String?
|
|
580
597
|
public var liveStreamStatus: ShortKitSDK.LiveStreamStatus?
|
|
581
598
|
public var startedAt: Swift.String?
|
|
582
|
-
public
|
|
599
|
+
public var currentViewers: Swift.Int
|
|
600
|
+
public init(id: Swift.String, playbackId: Swift.String? = nil, title: Swift.String, description: Swift.String? = nil, duration: Swift.Double, streamingUrl: Swift.String, thumbnailUrl: Swift.String, captionTracks: [ShortKitSDK.CaptionTrack] = [], customMetadata: [Swift.String : ShortKitSDK.JSONValue]? = nil, author: Swift.String? = nil, articleUrl: Swift.String? = nil, commentCount: Swift.Int? = nil, fallbackUrl: Swift.String? = nil, downloadUrl: Swift.String? = nil, isLive: Swift.Bool = false, liveStreamId: Swift.String? = nil, liveStreamStatus: ShortKitSDK.LiveStreamStatus? = nil, startedAt: Swift.String? = nil, currentViewers: Swift.Int = 0)
|
|
583
601
|
public init(from decoder: any Swift.Decoder) throws
|
|
584
602
|
public static func == (a: ShortKitSDK.ContentItem, b: ShortKitSDK.ContentItem) -> Swift.Bool
|
|
585
603
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
@@ -840,10 +858,23 @@ public protocol LiveOverlay : AnyObject {
|
|
|
840
858
|
func configure(with item: ShortKitSDK.ContentItem)
|
|
841
859
|
func activate()
|
|
842
860
|
func deactivate()
|
|
843
|
-
func
|
|
861
|
+
func liveStreamStatusDidChange(to status: ShortKitSDK.LiveStreamStatus)
|
|
862
|
+
func expand()
|
|
863
|
+
func collapse()
|
|
844
864
|
}
|
|
845
865
|
extension ShortKitSDK.LiveOverlay {
|
|
846
|
-
public func
|
|
866
|
+
public func liveStreamStatusDidChange(to status: ShortKitSDK.LiveStreamStatus)
|
|
867
|
+
public func expand()
|
|
868
|
+
public func collapse()
|
|
869
|
+
}
|
|
870
|
+
public protocol LiveRoomMask : AnyObject {
|
|
871
|
+
var liveRegion: UIKit.UIView { get }
|
|
872
|
+
func attach(player: ShortKitSDK.ShortKitPlayer)
|
|
873
|
+
func configure(with item: ShortKitSDK.ContentItem)
|
|
874
|
+
func willDismiss()
|
|
875
|
+
}
|
|
876
|
+
extension ShortKitSDK.LiveRoomMask {
|
|
877
|
+
public func willDismiss()
|
|
847
878
|
}
|
|
848
879
|
public protocol SurveyOverlay : AnyObject {
|
|
849
880
|
var onSurveyResponse: ((Swift.String, ShortKitSDK.SurveyOption) -> Swift.Void)? { get set }
|
|
@@ -975,6 +1006,19 @@ public enum ContentSignal : Swift.Equatable, Swift.Sendable {
|
|
|
975
1006
|
final public var remainingContentCount: Combine.AnyPublisher<Swift.Int, Swift.Never> {
|
|
976
1007
|
get
|
|
977
1008
|
}
|
|
1009
|
+
final public var isLiveRoomExpanded: Combine.AnyPublisher<Swift.Bool, Swift.Never> {
|
|
1010
|
+
get
|
|
1011
|
+
}
|
|
1012
|
+
final public var isLiveRoomExpandedValue: Swift.Bool {
|
|
1013
|
+
get
|
|
1014
|
+
}
|
|
1015
|
+
final public var liveStreamStatus: Combine.AnyPublisher<ShortKitSDK.LiveStreamStatus?, Swift.Never> {
|
|
1016
|
+
get
|
|
1017
|
+
}
|
|
1018
|
+
final public var liveStreamStatusValue: ShortKitSDK.LiveStreamStatus? {
|
|
1019
|
+
get
|
|
1020
|
+
}
|
|
1021
|
+
final public func currentProgramDate() -> Foundation.Date?
|
|
978
1022
|
final public var currentItemValue: ShortKitSDK.ContentItem? {
|
|
979
1023
|
get
|
|
980
1024
|
}
|
|
@@ -993,6 +1037,7 @@ public enum ContentSignal : Swift.Equatable, Swift.Sendable {
|
|
|
993
1037
|
final public func setMaxBitrate(_ bps: Swift.Int)
|
|
994
1038
|
final public func setCaptionsEnabled(_ enabled: Swift.Bool)
|
|
995
1039
|
final public func selectCaptionTrack(language: Swift.String)
|
|
1040
|
+
final public func dismissLiveRoom()
|
|
996
1041
|
final public func seekThumbnail(at time: Swift.Double) -> UIKit.UIImage?
|
|
997
1042
|
@objc deinit
|
|
998
1043
|
}
|
|
Binary file
|
|
@@ -244,6 +244,7 @@ public struct FeedConfig : Swift.Codable {
|
|
|
244
244
|
public var surveyOverlay: ShortKitSDK.SurveyOverlayMode
|
|
245
245
|
public var adOverlay: ShortKitSDK.AdOverlayMode
|
|
246
246
|
public var liveOverlay: ShortKitSDK.LiveOverlayMode
|
|
247
|
+
public var liveRoomMask: ShortKitSDK.LiveRoomMaskMode
|
|
247
248
|
public var muteOnStart: Swift.Bool
|
|
248
249
|
public var autoplay: Swift.Bool
|
|
249
250
|
public var feedSource: ShortKitSDK.FeedSource
|
|
@@ -251,9 +252,9 @@ public struct FeedConfig : Swift.Codable {
|
|
|
251
252
|
public var pullToRefreshEnabled: Swift.Bool
|
|
252
253
|
public var filter: ShortKitSDK.FeedFilter?
|
|
253
254
|
public var preload: ShortKitSDK.FeedPreload?
|
|
254
|
-
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, liveOverlay: ShortKitSDK.LiveOverlayMode = .default, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
255
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
255
|
+
public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, liveOverlay: ShortKitSDK.LiveOverlayMode = .default, liveRoomMask: ShortKitSDK.LiveRoomMaskMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
|
|
256
256
|
public init(from decoder: any Swift.Decoder) throws
|
|
257
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
257
258
|
}
|
|
258
259
|
public enum FeedMaskMode {
|
|
259
260
|
case none
|
|
@@ -262,6 +263,13 @@ public enum FeedMaskMode {
|
|
|
262
263
|
extension ShortKitSDK.FeedMaskMode : Swift.Equatable {
|
|
263
264
|
public static func == (lhs: ShortKitSDK.FeedMaskMode, rhs: ShortKitSDK.FeedMaskMode) -> Swift.Bool
|
|
264
265
|
}
|
|
266
|
+
public enum LiveRoomMaskMode {
|
|
267
|
+
case none
|
|
268
|
+
case custom(@Sendable () -> any UIKit.UIView & ShortKitSDK.LiveRoomMask)
|
|
269
|
+
}
|
|
270
|
+
extension ShortKitSDK.LiveRoomMaskMode : Swift.Equatable {
|
|
271
|
+
public static func == (lhs: ShortKitSDK.LiveRoomMaskMode, rhs: ShortKitSDK.LiveRoomMaskMode) -> Swift.Bool
|
|
272
|
+
}
|
|
265
273
|
public enum VideoOverlayMode {
|
|
266
274
|
case none
|
|
267
275
|
case custom(@Sendable () -> any UIKit.UIView & ShortKitSDK.FeedOverlay)
|
|
@@ -419,6 +427,7 @@ public enum ShortKitDownloadError : Swift.Error {
|
|
|
419
427
|
case cancelled
|
|
420
428
|
}
|
|
421
429
|
@_hasMissingDesignatedInitializers final public class FeedPreload : @unchecked Swift.Sendable {
|
|
430
|
+
public init(immediateItems items: [ShortKitSDK.FeedInput])
|
|
422
431
|
@objc deinit
|
|
423
432
|
}
|
|
424
433
|
@_Concurrency.MainActor @preconcurrency public struct ShortKitFeedView : SwiftUI.UIViewControllerRepresentable {
|
|
@@ -438,9 +447,17 @@ public enum ShortKitDownloadError : Swift.Error {
|
|
|
438
447
|
@_Concurrency.MainActor @preconcurrency public var onDismiss: (() -> Swift.Void)?
|
|
439
448
|
@_Concurrency.MainActor @preconcurrency public var onRemainingContentCountChange: ((Swift.Int) -> Swift.Void)?
|
|
440
449
|
@_Concurrency.MainActor @preconcurrency public var onFeedReady: (() -> Swift.Void)?
|
|
450
|
+
public struct VideoCarouselCellTapPayload {
|
|
451
|
+
public let id: Swift.String
|
|
452
|
+
public let index: Swift.Int
|
|
453
|
+
public let pageIndex: Swift.Int
|
|
454
|
+
}
|
|
455
|
+
@_Concurrency.MainActor @preconcurrency public var onVideoCarouselCellTap: ((ShortKitSDK.ShortKitFeedViewController.VideoCarouselCellTapPayload) -> Swift.Void)?
|
|
456
|
+
@_Concurrency.MainActor @preconcurrency public var onRefreshStateChanged: ((ShortKitSDK.ShortKitRefreshState) -> Swift.Void)?
|
|
441
457
|
@_Concurrency.MainActor @preconcurrency public var seedThumbnail: UIKit.UIImage?
|
|
442
458
|
@_Concurrency.MainActor @preconcurrency public init(shortKit: ShortKitSDK.ShortKit, config: ShortKitSDK.FeedConfig, startAtItemId: Swift.String? = nil)
|
|
443
|
-
@_Concurrency.MainActor public func setFeedItems(_ items: [ShortKitSDK.FeedInput])
|
|
459
|
+
@_Concurrency.MainActor public func setFeedItems(_ items: [ShortKitSDK.FeedInput], startAtId: Swift.String? = nil)
|
|
460
|
+
@_Concurrency.MainActor public func scrollToItem(id: Swift.String, animated: Swift.Bool)
|
|
444
461
|
@_Concurrency.MainActor public func appendFeedItems(_ items: [ShortKitSDK.FeedInput])
|
|
445
462
|
@_Concurrency.MainActor public func applyFilter(_ filter: ShortKitSDK.FeedFilter?)
|
|
446
463
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
|
|
@@ -579,7 +596,8 @@ public struct ContentItem : Swift.Codable, Swift.Equatable, @unchecked Swift.Sen
|
|
|
579
596
|
public var liveStreamId: Swift.String?
|
|
580
597
|
public var liveStreamStatus: ShortKitSDK.LiveStreamStatus?
|
|
581
598
|
public var startedAt: Swift.String?
|
|
582
|
-
public
|
|
599
|
+
public var currentViewers: Swift.Int
|
|
600
|
+
public init(id: Swift.String, playbackId: Swift.String? = nil, title: Swift.String, description: Swift.String? = nil, duration: Swift.Double, streamingUrl: Swift.String, thumbnailUrl: Swift.String, captionTracks: [ShortKitSDK.CaptionTrack] = [], customMetadata: [Swift.String : ShortKitSDK.JSONValue]? = nil, author: Swift.String? = nil, articleUrl: Swift.String? = nil, commentCount: Swift.Int? = nil, fallbackUrl: Swift.String? = nil, downloadUrl: Swift.String? = nil, isLive: Swift.Bool = false, liveStreamId: Swift.String? = nil, liveStreamStatus: ShortKitSDK.LiveStreamStatus? = nil, startedAt: Swift.String? = nil, currentViewers: Swift.Int = 0)
|
|
583
601
|
public init(from decoder: any Swift.Decoder) throws
|
|
584
602
|
public static func == (a: ShortKitSDK.ContentItem, b: ShortKitSDK.ContentItem) -> Swift.Bool
|
|
585
603
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
@@ -840,10 +858,23 @@ public protocol LiveOverlay : AnyObject {
|
|
|
840
858
|
func configure(with item: ShortKitSDK.ContentItem)
|
|
841
859
|
func activate()
|
|
842
860
|
func deactivate()
|
|
843
|
-
func
|
|
861
|
+
func liveStreamStatusDidChange(to status: ShortKitSDK.LiveStreamStatus)
|
|
862
|
+
func expand()
|
|
863
|
+
func collapse()
|
|
844
864
|
}
|
|
845
865
|
extension ShortKitSDK.LiveOverlay {
|
|
846
|
-
public func
|
|
866
|
+
public func liveStreamStatusDidChange(to status: ShortKitSDK.LiveStreamStatus)
|
|
867
|
+
public func expand()
|
|
868
|
+
public func collapse()
|
|
869
|
+
}
|
|
870
|
+
public protocol LiveRoomMask : AnyObject {
|
|
871
|
+
var liveRegion: UIKit.UIView { get }
|
|
872
|
+
func attach(player: ShortKitSDK.ShortKitPlayer)
|
|
873
|
+
func configure(with item: ShortKitSDK.ContentItem)
|
|
874
|
+
func willDismiss()
|
|
875
|
+
}
|
|
876
|
+
extension ShortKitSDK.LiveRoomMask {
|
|
877
|
+
public func willDismiss()
|
|
847
878
|
}
|
|
848
879
|
public protocol SurveyOverlay : AnyObject {
|
|
849
880
|
var onSurveyResponse: ((Swift.String, ShortKitSDK.SurveyOption) -> Swift.Void)? { get set }
|
|
@@ -975,6 +1006,19 @@ public enum ContentSignal : Swift.Equatable, Swift.Sendable {
|
|
|
975
1006
|
final public var remainingContentCount: Combine.AnyPublisher<Swift.Int, Swift.Never> {
|
|
976
1007
|
get
|
|
977
1008
|
}
|
|
1009
|
+
final public var isLiveRoomExpanded: Combine.AnyPublisher<Swift.Bool, Swift.Never> {
|
|
1010
|
+
get
|
|
1011
|
+
}
|
|
1012
|
+
final public var isLiveRoomExpandedValue: Swift.Bool {
|
|
1013
|
+
get
|
|
1014
|
+
}
|
|
1015
|
+
final public var liveStreamStatus: Combine.AnyPublisher<ShortKitSDK.LiveStreamStatus?, Swift.Never> {
|
|
1016
|
+
get
|
|
1017
|
+
}
|
|
1018
|
+
final public var liveStreamStatusValue: ShortKitSDK.LiveStreamStatus? {
|
|
1019
|
+
get
|
|
1020
|
+
}
|
|
1021
|
+
final public func currentProgramDate() -> Foundation.Date?
|
|
978
1022
|
final public var currentItemValue: ShortKitSDK.ContentItem? {
|
|
979
1023
|
get
|
|
980
1024
|
}
|
|
@@ -993,6 +1037,7 @@ public enum ContentSignal : Swift.Equatable, Swift.Sendable {
|
|
|
993
1037
|
final public func setMaxBitrate(_ bps: Swift.Int)
|
|
994
1038
|
final public func setCaptionsEnabled(_ enabled: Swift.Bool)
|
|
995
1039
|
final public func selectCaptionTrack(language: Swift.String)
|
|
1040
|
+
final public func dismissLiveRoom()
|
|
996
1041
|
final public func seekThumbnail(at time: Swift.Double) -> UIKit.UIImage?
|
|
997
1042
|
@objc deinit
|
|
998
1043
|
}
|