Skip to content

Commit

Permalink
make positionDelegates return non-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
John committed Jan 7, 2021
1 parent 6292790 commit 7efeac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Classes/SwiftOcarinaPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class PlayerDelegate {
seekDelegate(id, positionInMillis)
}

func position(_ id: Int) -> Int64? {
func position(_ id: Int) -> Int64 {
return positionDelegate(id)
}

Expand All @@ -197,7 +197,7 @@ public typealias ResumeDelegate = (_ id: Int) -> Void
public typealias StopDelegate = (_ id: Int) -> Void
public typealias VolumeDelegate = (_ id: Int, _ volume: Double) -> Void
public typealias SeekDelegate = (_ id: Int, _ positionInMillis: Int) -> Void
public typealias PositionDelegate = (_ id: Int) -> Int64?
public typealias PositionDelegate = (_ id: Int) -> Int64

public class SwiftOcarinaPlugin: NSObject, FlutterPlugin {
static var players = [Int: Player]()
Expand Down

0 comments on commit 7efeac5

Please sign in to comment.