Skip to main content

shouldShowPanel

Description

Observable field that provides a panel visibility recommendation from the SDK.

Type

boolean

Example

sub setupPanelObservers()
m.lib.observeField("shouldShowPanel", "onShouldShowPanel")
end sub

function onShouldShowPanel(event as Object)
shouldShow = event.getData()

if shouldShow then
print "SDK recommends showing panel"
' Optionally auto-show the panel
m.lib.showPanel = true
else
print "SDK recommends hiding panel"
end if
end function

Best Practices

  • Use this as a recommendation, not a requirement
  • Consider user preferences before auto-showing panels
  • Combine with user settings for better experience