Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function isHighDPRAllowed

    • True when the cap is not restricting the display's own DPR.

      Derived from the cap rather than stored separately, so the two can never disagree — but note a session that raised the cap via a ?dpr=2 pin also reads as "allowed" here. That is deliberate: the question this answers is "may the viewer render above CSS resolution", and after an explicit pin the answer genuinely is yes.

      Returns boolean