-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from icerockdev/develop
Release 0.8.1
- Loading branch information
Showing
7 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
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
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
13 changes: 13 additions & 0 deletions
13
...osMain/kotlin/dev/icerock/moko/media/picker/AdaptivePresentationDelegateToContinuation.kt
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,13 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package dev.icerock.moko.media.picker | ||
|
||
import platform.UIKit.UIAdaptivePresentationControllerDelegateProtocol | ||
import platform.darwin.NSObject | ||
import kotlin.coroutines.Continuation | ||
|
||
internal expect class AdaptivePresentationDelegateToContinuation( | ||
continuation: Continuation<*> | ||
) : NSObject, UIAdaptivePresentationControllerDelegateProtocol |
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
18 changes: 18 additions & 0 deletions
18
...64Main/kotlin/dev/icerock/moko/media/picker/AdaptivePresentationDelegateToContinuation.kt
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,18 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package dev.icerock.moko.media.picker | ||
|
||
import platform.UIKit.UIAdaptivePresentationControllerDelegateProtocol | ||
import platform.UIKit.UIPresentationController | ||
import platform.darwin.NSObject | ||
import kotlin.coroutines.Continuation | ||
|
||
internal actual class AdaptivePresentationDelegateToContinuation actual constructor( | ||
private val continuation: Continuation<*> | ||
) : NSObject(), UIAdaptivePresentationControllerDelegateProtocol { | ||
override fun presentationControllerDidDismiss(presentationController: UIPresentationController) { | ||
continuation.resumeWith(Result.failure(CanceledException())) | ||
} | ||
} |
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
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