Exported types need public constructors
This commit is contained in:
Родитель
b04418f2e7
Коммит
307bb14c4b
|
@ -104,15 +104,15 @@ namespace Xamarin.Essentials
|
|||
}
|
||||
|
||||
[BroadcastReceiver(Enabled = true, Exported = false, Label = "Essentials Battery Broadcast Receiver")]
|
||||
internal class BatteryBroadcastReceiver : BroadcastReceiver
|
||||
class BatteryBroadcastReceiver : BroadcastReceiver
|
||||
{
|
||||
Action onChanged;
|
||||
|
||||
internal BatteryBroadcastReceiver()
|
||||
public BatteryBroadcastReceiver()
|
||||
{
|
||||
}
|
||||
|
||||
internal BatteryBroadcastReceiver(Action onChanged) =>
|
||||
public BatteryBroadcastReceiver(Action onChanged) =>
|
||||
this.onChanged = onChanged;
|
||||
|
||||
public override void OnReceive(Context context, Intent intent) =>
|
||||
|
|
|
@ -207,11 +207,11 @@ namespace Xamarin.Essentials
|
|||
{
|
||||
Action onChanged;
|
||||
|
||||
internal ConnectivityBroadcastReceiver()
|
||||
public ConnectivityBroadcastReceiver()
|
||||
{
|
||||
}
|
||||
|
||||
internal ConnectivityBroadcastReceiver(Action onChanged) =>
|
||||
public ConnectivityBroadcastReceiver(Action onChanged) =>
|
||||
this.onChanged = onChanged;
|
||||
|
||||
public override async void OnReceive(Context context, Intent intent)
|
||||
|
|
Загрузка…
Ссылка в новой задаче