Table of Contents

Class Service

Namespace
Android.App
Assembly
MASES.Netdroid.dll
public class Service : ContextWrapper, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
Service
Implements
Derived
Inherited Members
Extension Methods

Constructors

Service()

public Service()

Service(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Service(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

START_CONTINUATION_MASK

public static int START_CONTINUATION_MASK { get; set; }

Property Value

int

START_FLAG_REDELIVERY

public static int START_FLAG_REDELIVERY { get; set; }

Property Value

int

START_FLAG_RETRY

public static int START_FLAG_RETRY { get; set; }

Property Value

int

START_NOT_STICKY

public static int START_NOT_STICKY { get; set; }

Property Value

int

START_REDELIVER_INTENT

public static int START_REDELIVER_INTENT { get; set; }

Property Value

int

START_STICKY

public static int START_STICKY { get; set; }

Property Value

int

START_STICKY_COMPATIBILITY

public static int START_STICKY_COMPATIBILITY { get; set; }

Property Value

int

STOP_FOREGROUND_DETACH

public static int STOP_FOREGROUND_DETACH { get; set; }

Property Value

int

STOP_FOREGROUND_LEGACY

[Obsolete("Deprecated in JVM")]
public static int STOP_FOREGROUND_LEGACY { get; set; }

Property Value

int

STOP_FOREGROUND_REMOVE

public static int STOP_FOREGROUND_REMOVE { get; set; }

Property Value

int

Methods

CreatePoolableInstance()

HPA initializer for Service()

public static Service CreatePoolableInstance()

Returns

Service

GetApplication()

public Application GetApplication()

Returns

Application

Application

GetForegroundServiceType()

public int GetForegroundServiceType()

Returns

int

int

OnBind(Intent)

public IBinder OnBind(Intent arg0)

Parameters

arg0 Intent

Intent

Returns

IBinder

IBinder

OnConfigurationChanged(Configuration)

public void OnConfigurationChanged(Configuration arg0)

Parameters

arg0 Configuration

Configuration

OnCreate()

public void OnCreate()

OnDestroy()

public void OnDestroy()

OnLowMemory()

public void OnLowMemory()

OnRebind(Intent)

public void OnRebind(Intent arg0)

Parameters

arg0 Intent

Intent

OnStart(Intent, int)

[Obsolete("Deprecated in JVM")]
public void OnStart(Intent arg0, int arg1)

Parameters

arg0 Intent

Intent

arg1 int

int

OnStartCommand(Intent, int, int)

public int OnStartCommand(Intent arg0, int arg1, int arg2)

Parameters

arg0 Intent

Intent

arg1 int

int

arg2 int

int

Returns

int

int

OnTaskRemoved(Intent)

public void OnTaskRemoved(Intent arg0)

Parameters

arg0 Intent

Intent

OnTimeout(int)

public void OnTimeout(int arg0)

Parameters

arg0 int

int

OnTimeout(int, int)

public void OnTimeout(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

OnTrimMemory(int)

public void OnTrimMemory(int arg0)

Parameters

arg0 int

int

OnUnbind(Intent)

public bool OnUnbind(Intent arg0)

Parameters

arg0 Intent

Intent

Returns

bool

bool

StartForeground(int, Notification)

public void StartForeground(int arg0, Notification arg1)

Parameters

arg0 int

int

arg1 Notification

Notification

StartForeground(int, Notification, int)

public void StartForeground(int arg0, Notification arg1, int arg2)

Parameters

arg0 int

int

arg1 Notification

Notification

arg2 int

int

StopForeground(bool)

[Obsolete("Deprecated in JVM")]
public void StopForeground(bool arg0)

Parameters

arg0 bool

bool

StopForeground(int)

public void StopForeground(int arg0)

Parameters

arg0 int

int

StopSelf()

public void StopSelf()

StopSelf(int)

public void StopSelf(int arg0)

Parameters

arg0 int

int

StopSelfResult(int)

public bool StopSelfResult(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

Operators

implicit operator ComponentCallbacks2(Service)

Converter from Service to ComponentCallbacks2

public static implicit operator ComponentCallbacks2(Service t)

Parameters

t Service

Returns

ComponentCallbacks2