I want to find...

Search

Shares

Table of Content

86HMI::pageLeave()

[General Functions]

The following Event Functions are written between BEGIN_HMI_EVENT_PROC and END_HMI_EVENT_PROC.

Description

Determine whether the page has been leaved.

Syntax

bool pageLeave(lv_obj_t* id);
bool pageLeave(char* name);

Parameters

  • [in] id
    Object ID.
  • [in] name
    Object Name.

Return

Bool. Determine whether the page has been leaved.

Example

#include "myhmi.h"

void setup() {
  Hmi.begin();
  // put your setup code here, to run once:
}

void loop() {
  BEGIN_HMI_EVENT_PROC
  {
    if (Hmi.pageLeave(p1))
    {
      // do someting when page leave;
    }
  }
  END_HMI_EVENT_PROC
}

Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.

Scroll to Top