box / box/box-ios-preview-sdk

expose search/pages button function to developer

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
enhancement objective-c
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.