Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23857] iOS: Expose more Pasteboard Item's APIs

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.5.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-5.5.0
ReporterEric Wieber
AssigneeUnknown
Created2016-09-01T17:28:03.000+0000
Updated2018-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\]\])

Comments

No comments

JSON Source