HardwareButtons.BackPressed HardwareButtons.BackPressed HardwareButtons.BackPressed HardwareButtons.BackPressed HardwareButtons.BackPressed Event

Definition

Occurs when the user presses the hardware Back button.

public : event EventHandler<BackPressedEventArgs> BackPressed
// Register
event_token BackPressed(EventHandler<BackPressedEventArgs> const& handler) const;

// Revoke with event_token
void BackPressed(event_token const& cookie) const;

// Revoke with event_revoker
BackPressed_revoker BackPressed(auto_revoke_t, EventHandler<BackPressedEventArgs> const& handler) const;
public event EventHandler<BackPressedEventArgs> BackPressed
Public Event BackPressed As EventHandler (Of BackPressedEventArgs)
function onBackPressed(eventArgs){/* Your code */}


hardwareButtons.addEventListener("backpressed", onBackPressed);
hardwareButtons.removeEventListener("backpressed", onBackPressed);