[TIMOB-23857] iOS: Expose more Pasteboard Item's APIs
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 5.5.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-5.5.0 |
Reporter | Eric Wieber |
Assignee | Unknown |
Created | 2016-09-01T17:28:03.000+0000 |
Updated | 2018-02-28T19:55:29.000+0000 |
Description
With the expansion of Pasteboard support in iOS 10, it would be helpful to have more of the APIs for Pasteboard manipulation exposed. Ideally, we would support all listed in https://developer.apple.com/reference/uikit/uipasteboard
Previously we mainly supported Pasteboards with single items. Many of these APIs would add support for using multiple Pasteboard items.
Proposed APIs to expose:
var *types*: \[String\]
- added in iOS 10
func *contains*(pasteboardTypes: \[String\])
func *value*(forPasteboardType: String)
func *setValue*(Any, forPasteboardType: String)
var *numberOfItems*: Int
func *contains*(pasteboardTypes: \[String\], inItemSet: IndexSet?)
func *data*(forPasteboardType: String, inItemSet: IndexSet?)
func *values*(forPasteboardType: String, inItemSet: IndexSet?)
func *addItems*(\[\[String : Any\]\])
No comments