Class Service
public class Service : ContextWrapper, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Context>Service
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Context>.IsAssignableFrom(IJavaType)JVMBridgeBase<Context>.IsAssignableFrom<T>()JVMBridgeBase<Context>.Execute<T>(params T[])JVMBridgeBase<Context>.DynBridgeClazzJVMBridgeBase<Context>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Service()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("Service class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Service()
Service(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("Service class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Service(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
START_CONTINUATION_MASK
public static int START_CONTINUATION_MASK { get; }
Property Value
START_FLAG_REDELIVERY
public static int START_FLAG_REDELIVERY { get; }
Property Value
START_FLAG_RETRY
public static int START_FLAG_RETRY { get; }
Property Value
START_NOT_STICKY
public static int START_NOT_STICKY { get; }
Property Value
START_REDELIVER_INTENT
public static int START_REDELIVER_INTENT { get; }
Property Value
START_STICKY
public static int START_STICKY { get; }
Property Value
START_STICKY_COMPATIBILITY
public static int START_STICKY_COMPATIBILITY { get; }
Property Value
STOP_FOREGROUND_DETACH
public static int STOP_FOREGROUND_DETACH { get; }
Property Value
STOP_FOREGROUND_LEGACY
[Obsolete]
public static int STOP_FOREGROUND_LEGACY { get; }
Property Value
STOP_FOREGROUND_REMOVE
public static int STOP_FOREGROUND_REMOVE { get; }
Property Value
Methods
GetApplication()
public Application GetApplication()
Returns
GetForegroundServiceType()
public int GetForegroundServiceType()
Returns
OnBind(Intent)
public IBinder OnBind(Intent arg0)
Parameters
Returns
OnConfigurationChanged(Configuration)
public void OnConfigurationChanged(Configuration arg0)
Parameters
OnCreate()
public void OnCreate()
OnDestroy()
public void OnDestroy()
OnLowMemory()
public void OnLowMemory()
OnRebind(Intent)
public void OnRebind(Intent arg0)
Parameters
OnStart(Intent, int)
https://developer.android.com/reference/android/app/Service.html#onStart(android.content.Intent,int)
[Obsolete]
public void OnStart(Intent arg0, int arg1)
Parameters
OnStartCommand(Intent, int, int)
public int OnStartCommand(Intent arg0, int arg1, int arg2)
Parameters
Returns
OnTaskRemoved(Intent)
public void OnTaskRemoved(Intent arg0)
Parameters
OnTimeout(int)
public void OnTimeout(int arg0)
Parameters
OnTimeout(int, int)
public void OnTimeout(int arg0, int arg1)
Parameters
OnTrimMemory(int)
public void OnTrimMemory(int arg0)
Parameters
OnUnbind(Intent)
public bool OnUnbind(Intent arg0)
Parameters
Returns
StartForeground(int, Notification)
public void StartForeground(int arg0, Notification arg1)
Parameters
arg0
intarg1
Notification
StartForeground(int, Notification, int)
public void StartForeground(int arg0, Notification arg1, int arg2)
Parameters
arg0
intarg1
Notificationarg2
int
StopForeground(bool)
[Obsolete]
public void StopForeground(bool arg0)
Parameters
StopForeground(int)
public void StopForeground(int arg0)
Parameters
StopSelf()
public void StopSelf()
StopSelf(int)
public void StopSelf(int arg0)
Parameters
StopSelfResult(int)
public bool StopSelfResult(int arg0)
Parameters
Returns
Operators
implicit operator ComponentCallbacks2(Service)
Converter from Service to ComponentCallbacks2
public static implicit operator ComponentCallbacks2(Service t)
Parameters
t
Service