Skip to content

Commit

Permalink
Merge pull request #47 from AgoraIO-Community/public-extension
Browse files Browse the repository at this point in the history
Public extension helpers
  • Loading branch information
maxxfrazer authored Oct 8, 2021
2 parents 33e0cb5 + 90fb9fe commit 3c1c765
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AgoraUIKit_iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'AgoraUIKit_iOS'
s.version = '4.0.0-preview.5'
s.version = '4.0.0-preview.6'
s.summary = 'Agora video session UIKit template.'

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Sources/Agora-UIKit/AgoraUIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public struct AgoraUIKit: Codable {
/// Framework type of UIKit. "native", "flutter", "reactnative"
fileprivate(set) var framework: String
/// Version of UIKit being used
static let version = "4.0.0-preview.5"
static let version = "4.0.0-preview.6"
/// Framework type of UIKit. "native", "flutter", "reactnative"
static let framework = "native"
#if os(iOS)
Expand Down
10 changes: 5 additions & 5 deletions Sources/Agora-UIKit/AgoraVideoViewer+AgoraExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension AgoraVideoViewer {
/// - enabled: enable or disable. - true: enable. - false: disable.
/// - Returns: `0`: Success. `<0`: Failure.
@discardableResult
func enableExtension(withVendor vendor: String, extension extString: String, enabled: Bool) -> Int32 {
open func enableExtension(withVendor vendor: String, extension extString: String, enabled: Bool) -> Int32 {
return self.agkit.enableExtension(withVendor: vendor, extension: extString, enabled: enabled)
}

Expand All @@ -27,7 +27,7 @@ extension AgoraVideoViewer {
/// - value: string value to set.
/// - Returns: `0` = Success. `<0` = Failure.
@discardableResult
func setExtensionProperty(
open func setExtensionProperty(
_ vendor: String, extension extString: String, key: String, value: String
) -> Int32 {
return self.agkit.setExtensionPropertyWithVendor(
Expand All @@ -44,7 +44,7 @@ extension AgoraVideoViewer {
/// - codable: value to set for the property, must be encodable to a JSON string.
/// - Returns: `0` = Success. `<0` = Failure.
@discardableResult
func setExtensionProperty<T>(
open func setExtensionProperty<T>(
_ vendor: String, extension extString: String, key: String, codable: T
) -> Int32? where T: Encodable {
guard let encodedData = try? JSONEncoder().encode(codable),
Expand All @@ -66,7 +66,7 @@ extension AgoraVideoViewer {
/// - strValue: string value to set.
/// - Returns: `0` = Success. `<0` = Failure.
@discardableResult
func setExtensionProperty(
open func setExtensionProperty(
_ vendor: String, extension extString: String, key: String, strValue: String
) -> Int32 {
return self.agkit.setExtensionPropertyWithVendor(
Expand All @@ -83,7 +83,7 @@ extension AgoraVideoViewer {
/// - value: Boolean value to set.
/// - Returns: `0` = Success. `<0` = Failure.
@discardableResult
func setExtensionProperty(
open func setExtensionProperty(
_ vendor: String, extension extString: String, key: String, value: Bool
) -> Int32 {
return self.agkit.setExtensionPropertyWithVendor(
Expand Down

0 comments on commit 3c1c765

Please sign in to comment.