ISmsDevice.SmsMessageReceived ISmsDevice.SmsMessageReceived ISmsDevice.SmsMessageReceived ISmsDevice.SmsMessageReceived ISmsDevice.SmsMessageReceived Event

Definition

Sets an event handler to be called when the device receives a new text message.

public : event SmsMessageReceivedEventHandler SmsMessageReceived
// Register
event_token SmsMessageReceived(SmsMessageReceivedEventHandler const& handler) const;

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

// Revoke with event_revoker
SmsMessageReceived_revoker SmsMessageReceived(auto_revoke_t, SmsMessageReceivedEventHandler const& handler) const;
public event SmsMessageReceivedEventHandler SmsMessageReceived
Public Event SmsMessageReceived As SmsMessageReceivedEventHandler
function onSmsMessageReceived(eventArgs){/* Your code */}


iSmsDevice.addEventListener("smsmessagereceived", onSmsMessageReceived);
iSmsDevice.removeEventListener("smsmessagereceived", onSmsMessageReceived);