Skip to main content
reference

PrivmxEndpointBaseActivity

Manages PrivmxEndpointService and active connections.

Constructors

PrivmxEndpointBaseActivity

public void PrivmxEndpointBaseActivity()

Fields

privmxEndpointContainer

Container instance for active connections to handle PrivMX Bridge.

protected PrivmxEndpointContainer privmxEndpointContainer

Methods

getCertPath

Override this method to set the path to your .pem certificate to create secure connection with PrivMX Bridge. If the passed path does not contain .pem file, the default PrivMX certificate is installed.

protected abstract String getCertPath()

TypeDescription
String Path to .pem certificate used to initialize PrivmxEndpointService

onPrivmxEndpointStart

Method called when PrivmxEndpointService and PrivmxEndpointContainer have been successfully initialized. Override this method to safely work with PrivmxEndpointBaseActivity#privmxEndpointContainer.

protected void onPrivmxEndpointStart()

onStart

Starting and binding to PrivmxEndpointService with passing path to .pem certificate returned from #getCertPath().

protected void onStart()

onStop

Unregisters all callbacks registered using PrivmxEndpoint#registerCallback(Object, EventType, EventCallback) identified by this instance and unbinds PrivmxEndpointService.

protected void onStop()