Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

canShare boolean and ShareError #89

Closed
rudedogg opened this issue Oct 31, 2016 · 1 comment
Closed

canShare boolean and ShareError #89

rudedogg opened this issue Oct 31, 2016 · 1 comment
Labels
repro needed Still needs more details in order to repro the issue

Comments

@rudedogg
Copy link

In ShareError.swift it mentions a boolean property to check whether Sharing is available. Is this available through the Swift SDK? I tried searching but could only find it in the Objective-C SDK.

Also, I don't think ShareError.dialogNotAvailable is being thrown. I tried catching it, but instead ShareError.reserved is thrown when running on the simulator.

ShareError.swift comment mentioned above:

  /**
   The error code for when a sharing dialog is not available.
   Use the `canShare` property to check for this case before calling show.
   */
  case dialogNotAvailable
@nlutsenko nlutsenko self-assigned this Oct 31, 2016
@nlutsenko nlutsenko added the repro needed Still needs more details in order to repro the issue label Oct 31, 2016
@nlutsenko
Copy link
Contributor

Hey @rudedogg, that's a nice catch.
The proper function name that this refers to is validate(), for example here.
This ensures that you are using the dialog with the appropriate content type and that all of the required fields are present and pass the basic validation.

If you provide more source code/context, most importantly - something I can use to reproduce the problem, that would let me help you 😁

@nlutsenko nlutsenko removed their assignment Oct 31, 2016
@gfosco gfosco closed this as completed Oct 12, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
repro needed Still needs more details in order to repro the issue
Projects
None yet
Development

No branches or pull requests

3 participants