LineSDKShareViewControllerDelegate.swift 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // LineSDKShareViewControllerDelegate.swift
  3. //
  4. // Copyright (c) 2016-present, LY Corporation. All rights reserved.
  5. //
  6. // You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
  7. // copy and distribute this software in source code or binary form for use
  8. // in connection with the web services and APIs provided by LY Corporation.
  9. //
  10. // As with any software that integrates with the LY Corporation platform, your use of this software
  11. // is subject to the LINE Developers Agreement [http://terms2.line.me/LINE_Developers_Agreement].
  12. // This copyright notice shall be included in all copies or substantial portions of the software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  15. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  17. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  18. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. //
  21. @objc public protocol LineSDKShareViewControllerDelegate: AnyObject {
  22. @objc optional func shareViewController(
  23. _ controller: LineSDKShareViewController,
  24. didFailLoadingListType shareType: LineSDKMessageShareTargetType,
  25. withError error: Error)
  26. @objc optional func shareViewControllerDidCancelSharing(_ controller: LineSDKShareViewController)
  27. @objc optional func shareViewController(
  28. _ controller: LineSDKShareViewController,
  29. didFailSendingMessages messages: [LineSDKMessage],
  30. toTargets targets: [LineSDKShareTarget],
  31. withError error: Error)
  32. @objc optional func shareViewController(
  33. _ controller: LineSDKShareViewController,
  34. didSendMessages messages: [LineSDKMessage],
  35. toTargets targets: [LineSDKShareTarget])
  36. @objc optional func shareViewController(
  37. _ controller: LineSDKShareViewController,
  38. messagesForSendingToTargets targets: [LineSDKShareTarget]) -> [LineSDKMessage]
  39. @objc optional func shareViewControllerShouldDismissAfterSending(
  40. _ controller: LineSDKShareViewController) -> Bool
  41. }