iOS keyboard extension paste video files to third party apps? - ios

I have been working on an iOS keyboard extension that sends video files through iMessages.
This functionality works fine with copy + paste methods but when trying to copy + paste into a third party app (IE: Facebook, WhatsApp, Line etc) the "paste" option does not show up.
Is there some way I can get these files to be pasted into these apps? Or is this not possible on iOS?
Thanks in advanced!

Different Apps have different behaviors that are allowed in their textfields, as specified by the developers of those Apps. You can't force them to accept content that they don't want to.
Generally, most popular Apps with text input either support copy-pasting images directly, or will automatically download and display the contents of links that the user copy pastes.
You should check out Riffsy, the last time I used their GIF Keyboard App they had a feature where if you long pressed on a GIF, a list of social media apps appeared, and selecting one of them performed the appropriate action to display an image in text fields in that App.

If you want to copy + paste any image, GIF or any video file that was loaded in your custom keyboard into any other app(i.e third party apps) other than the iMessage, That app input view(i.e text fields or text views) must support the images etc. If they don't support the images or videos you can't paste it in that input view.

Related

How to show my app in `open in` menu of other apps for `pdf` file based of selected pdf file size in swift 3

I want to show my app in open in menu of other apps(ex: mail app, dropbox, etc) for open in action, I have implemented for importing pdf files from other apps everything is working fine. But my question is how can I addsize restriction for selected pdf file like photos app.
For example: My app should show in open in menu only if selected pdf file size is less than 5mb.
In photos apps when selecting 6 images it shows many apps in open in menu list. Show below image
But when selecting 51 images it shows only 3 apps in open in menu. Show below image
I think in photos app the apps are filtering based on selected photos total size. I want these type of functionality in my app. Any suggestion? Thanks in advance.

What is the main difference between QLPreviewController and WebView to display PDF file or any text file.?

I Searched out i can view PDF or any text file using QLPreviewController and WebView. I know both way how to display but i didn't get what is the main difference between them.
Any one Tell me the Difference between this two.?
The primary purpose of QLPreviewController is to preview local files. That's all it does. And it provides the ability to share the document.
WKWebView is for presenting web content and local files. It is a general web browser. It's primary purpose is for viewing web content. It lets you move back and forth through browsing history. It allows you to handle links.
If your app needs to allow a user to view and possibly share a local document, use QLPreviewController. If your app needs a browser, use a web view.

Does it possible to choose specific file(.doc,.rtf,.png and etc) from iPhone devices?

I have an requirement like: There is an Browse button, If i select that button automatically navigate to Documents directory/ PhotoGalley/ Notes and etc..
Here i uploaded Android app images, for me also i need approach same thing, I know how to get the list of files from device but i am looking like what ever i select Browse button automatically iPhone inside data should pop up
If it is possible with sandbox , can you please help me out regarding this..

Menu is not showing pdf file- pdf Annotation in iOS

I am developing the app like ibooks by reference,in that the pdf is not enabling the menu i.e while I long tap the pdf it not showing Menu like copy , define.
How can I work in menu? Help me.
The linked solution simply does not implement text selection or glyph coordinate extraction/conversion. You need to parse the PDF page content stream and track glyphs on the page. CGPDFOperatorTable can be a starting point, however I suggest reading the PDF spec and getting familiar with the multiple transformation matrix states that a page can have - it's quite tricky to get right. You also need to embed various CMaps (character maps) so that all fonts can be correctly parsed. It took me more than a year to get a reliable text extraction for >99% of all PDF documents. If you want to save this time, you can check out the commercial PDF SDK I am working - google for PSPDFKit. We support iOS and Android.

iOS sharing images with text in messages like Emoji

The goal is to be able to insert images with text when sharing text into an SMS Message from the App as well as in e-mails. Like it is in the picture below. When I try to share images with the UIActivityViewController the images appear on the next line and not next to the text. Is it possible to embed images in text and e-mail like the built in Emoji text?
The contents of text messages are just that, text (that is, a sequence of Unicode code points.) The emoji images you see in the screenshot come from a system font installed on all iOS devices, and are represented in the text as unicode code points, just like the other regular letters in the same message.
If you want to embed custom images into text fields in your app, you can create a custom font that includes the desired graphics (for some code points in the Unicode private use area,) include the font in your app as an asset, configure your text fields to use that font, and then provide some UI for the user to type those code points in.
But remember that this will only work on devices that have your custom font installed, and in apps that choose to use that custom font to display the text — so essentially only in your own app. So for example if you'd send the text in an email or iMessage/SMS to another device, your custom graphics would not work unless a) the receiving device has your custom font installed system-wide, and b) the app displaying the text resolves the Unicode private use area code points you chose to use for your images to this custom font of yours.
If you only want to embed images into text fields within your own app, on iOS 7 and later you can use the text attachments feature that TextKit supports.

Resources