Skip to main content
C.Cella
Legend
April 15, 2026
Open for Voting

P: SDK / API to get the current view in Library

  • April 15, 2026
  • 1 reply
  • 13 views

Currently in the SDK we have LrApplicationView.getSecondaryViewName()

We need to have the same BUT for the “main screen” view and thus be able to detect which view we are in the Library module.

So Please implement an API to get the current “main view”
Hypothetical API
 

LrApplicationView.getMainViewName()

Returns the name of the view currently showing on the main screen

Return valueviewName (string) The name of the main view being shown, one of: "loupe", "live_loupe", "locked_loupe", "grid", "compare", "survey", "slideshow", or nil.



 

1 reply

johnrellis
Legend
April 15, 2026

I second this.  It’s simple functionality, trivial to implement, that’s been missing for years.