Unit CastleMessaging

Description

Message system to communicate with services implemented in other languages (in Java on Android, or Objective-C on iOS) (TMessaging class).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TMessageReceivedEventList Used by TMessaging to manage a list of listeners.
Class TMessaging Message system to communicate between native code (Pascal) and other languages (Java on Android, Objective-C on iOS) that possibly run in other thread.

Functions and Procedures

function Messaging: TMessaging;

Types

TMessageReceivedEvent = function (const Received: TCastleStringList; const ReceivedStream: TMemoryStream): Boolean of object;

Description

Functions and Procedures

function Messaging: TMessaging;

Auto-created single instance of TMessaging to communicate between native code (Pascal) and other languages (Java on Android, Objective-C on iOS).

Types

TMessageReceivedEvent = function (const Received: TCastleStringList; const ReceivedStream: TMemoryStream): Boolean of object;

Called by TMessaging when a new message from service is received.

Returns if the message was handled (this does not block the message from being passed to other callbacks, it only means we will not report a warning about unhandled message).

ReceivedStream may be Nil if service didn't provide any binary data stream.


Generated by PasDoc 0.15.0.