コード例 #1
0
 private void ManageBattery(SnackbarPage arg1, BatteryModel batteryModel)
 {
     NetworkStatus.Text = $"Battery {batteryModel.State.ToText()} at level {batteryModel.ChargeLevel * 100}%";
 }
コード例 #2
0
 private void ManageConnection(SnackbarPage arg1, bool networkConnected)
 {
     NetworkStatus.Text = $"Internet connection {(networkConnected ? "good" : "unavailable")}";
 }