Package org.angular.ts.ng
Class NativeService
java.lang.Object
org.angular.ts.ng.NativeService
@JsType(isNative=true,
name="ng.NativeService",
namespace="<global>")
public class NativeService
extends Object
Native bridge service used to call host-platform methods, receive replies, subscribe to native events, and access the active adapter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPublic NativeService.available member exposed by the AngularTS namespace contract.jsinterop.base.JsPropertyMap<elemental2.core.JsArray<String>> Public NativeService.capabilities member exposed by the AngularTS namespace contract.doublePublic NativeService.protocolVersion member exposed by the AngularTS namespace contract. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Name,Method>
elemental2.promise.Promise<NativeCapabilityResult<Name, Method>> call(Name target, Method method, NativeCapabilityParameters<Name, Method> params, NativeCallOptions options) Public NativeService.call member exposed by the AngularTS namespace contract.voiddispose()Public NativeService.dispose member exposed by the AngularTS namespace contract.<Name,Event>
org.angular.ts.ng.NativeService.Subscriptionon(Name target, Event event, NativeEventHandler<NativeCapabilityEventPayload<Name, Event>> handler) Public NativeService.on member exposed by the AngularTS namespace contract.voidPublic NativeService.receive member exposed by the AngularTS namespace contract.booleanPublic NativeService.supports member exposed by the AngularTS namespace contract.
-
Field Details
-
available
public boolean availablePublic NativeService.available member exposed by the AngularTS namespace contract. -
capabilities
Public NativeService.capabilities member exposed by the AngularTS namespace contract. -
protocolVersion
public double protocolVersionPublic NativeService.protocolVersion member exposed by the AngularTS namespace contract.
-
-
Constructor Details
-
NativeService
public NativeService()
-
-
Method Details
-
call
public <Name,Method> elemental2.promise.Promise<NativeCapabilityResult<Name,Method>> call(Name target, Method method, NativeCapabilityParameters<Name, Method> params, NativeCallOptions options) Public NativeService.call member exposed by the AngularTS namespace contract.- Parameters:
target- Value supplied for the target parameter.method- Value supplied for the method parameter.params- Value supplied for the params parameter.options- Value supplied for the options parameter.- Returns:
- Method result.
-
dispose
public void dispose()Public NativeService.dispose member exposed by the AngularTS namespace contract. -
on
public <Name,Event> org.angular.ts.ng.NativeService.Subscription on(Name target, Event event, NativeEventHandler<NativeCapabilityEventPayload<Name, Event>> handler) Public NativeService.on member exposed by the AngularTS namespace contract.- Parameters:
target- Value supplied for the target parameter.event- Value supplied for the event parameter.handler- Value supplied for the handler parameter.- Returns:
- Method result.
-
receive
Public NativeService.receive member exposed by the AngularTS namespace contract.- Parameters:
message- Value supplied for the message parameter.
-
supports
Public NativeService.supports member exposed by the AngularTS namespace contract.- Parameters:
target- Value supplied for the target parameter.method- Value supplied for the method parameter.- Returns:
- Method result.
-