MobileForms Toolkit Documentation

Phone.RegisterSignalStrengthChange Method 

Registers the conditional phone signal strength event handler.

public void RegisterSignalStrengthChange(
PhoneSignalStrengthChangedEventHandler handler,
StatusComparisonType comparisonType,
int comparisonValue
);

Parameters

handler
The event handler
comparisonType
The comparison type which defines the operation which should be performed on signal strength value.
comparisonValue
The value to which the signal strength value is compared.

Example

void main() { var phone = new Resco.Phone.Phone(); phone.RegisterSignalStrengthChange(OnSignalStrengthLow, StatusComparisonType.Less, 10); // ... phone.UnregisterSignalStrengthChange(OnSignalStrengthLow); } void OnSignalStrengthLow(object sender, PhoneEventArgs e) { System.Diagnostics.Debug.WriteLine("Phone signal strength is under 10%%"); }

See Also

Phone Class | Resco.Phone Namespace