-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56aff53
commit 6a2e90f
Showing
3 changed files
with
22 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Foundation | ||
|
||
/** | ||
* Class for register the `RtcEnginePlugin`. | ||
*/ | ||
@objc | ||
public class RtcEnginePluginRegistrant: NSObject { | ||
/** | ||
* Register a `RtcEnginePlugin`. The `plugin` will be called when the `RtcEngine` is created from | ||
* flutter side. | ||
*/ | ||
@objc public static func register(_ plugin: RtcEnginePlugin) { | ||
RtcEngineRegistry.shared.add(plugin) | ||
} | ||
|
||
/** | ||
* Unregister a previously registered `RtcEnginePlugin`. | ||
*/ | ||
@objc public static func unregister(_ plugin: RtcEnginePlugin) { | ||
RtcEngineRegistry.shared.remove(plugin) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.