expose search/pages button function to developer
- Dominant language
- Swift
- Stars
- 18
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
As for preview view in iOS , I have some custom advise :
Since the UI is too simple (and has some defects ) on the original full-screen preview , we'd like to use a preview view in an embedded page , please see the attached images , but I found that the function button for search and switch-pages can only show in the right-top bar ,preview VC automatically handle these two buttons and show no interface to developer to handle that feature . Can BOX-SDK expose an interface to use the search and swtich-pages function when previewing ?
please see the codes in swift language :
func itemsViewController(_ itemsViewController: BOXItemsViewController!, didTap file: BOXFile!, inItems items: [Any]!) {
self.file = file
let filePreviewController = BOXFilePreviewController(contentClient:BoxClient, file: file)!
filePreviewController.delegate = self
navigationController?.pushViewController(filePreviewController, animated: true)
}
I found that in full page , right button will show "search" and "page" buttons according to the file. For instance, a pdf/docx file will show buttons , but xml/excel/ppt will not show any buttons. And all the buttons is automatically handled by the BOXFilePreviewController .
And my question is I want to show that buttons in an embedded page ,not a full page . Is that possible?
Contributor guide
Research direction
Start with the BOXItemsViewController delegate flow and BOXFilePreviewController usage shown in the issue, then inspect the SDK's preview-controller API for embedded presentation and its search/page controls. Done means establishing whether those controls can be exposed outside the full-screen navigation bar and documenting the supported interface or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100