-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add iOS AudioPlayer from Nota fork
- Loading branch information
1 parent
aaa259f
commit 178ba14
Showing
35 changed files
with
4,004 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,19 @@ | ||
import Flutter | ||
import UIKit | ||
|
||
public class FlutterAudioPlayerPlugin: NSObject, FlutterPlugin { | ||
public static func register(with registrar: FlutterPluginRegistrar) { | ||
let channel = FlutterMethodChannel(name: "flutter_audio_player", binaryMessenger: registrar.messenger()) | ||
let instance = FlutterAudioPlayerPlugin() | ||
registrar.addMethodCallDelegate(instance, channel: channel) | ||
} | ||
|
||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { | ||
switch call.method { | ||
case "getPlatformVersion": | ||
result("iOS " + UIDevice.current.systemVersion) | ||
default: | ||
result(FlutterMethodNotImplemented) | ||
} | ||
} | ||
} |
Oops, something went wrong.