Exported types need public constructors

This commit is contained in:
Matthew Leibowitz 2018-05-02 17:54:14 +02:00
Родитель b04418f2e7
Коммит 307bb14c4b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3650EBE4AA155AF9
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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)