mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 23:01:52 +01:00
28 lines
732 B
C#
28 lines
732 B
C#
using Android.App;
|
|
using Android.Content;
|
|
using Borepin.Service;
|
|
using FabAccessAPI;
|
|
|
|
namespace Borepin.Droid.Services
|
|
{
|
|
public class APIService_New : IAPIService
|
|
{
|
|
#region Private Members
|
|
private readonly APIServiceConnection _APIServiceConnection;
|
|
#endregion
|
|
|
|
#region Constructors
|
|
public APIService_New()
|
|
{
|
|
Context context = Application.Context;
|
|
Intent service = new Intent(context, typeof(APIBindedService));
|
|
context.BindService(service, _APIServiceConnection, Bind.AutoCreate);
|
|
}
|
|
#endregion
|
|
|
|
public IAPI GetAPI()
|
|
{
|
|
return _APIServiceConnection?.Binder?.Service?.GetAPI();
|
|
}
|
|
}
|
|
} |