All Manuals > LispWorks User Guide and Reference Manual > 41 The LW-JI Package

NextPrevUpTopContentsIndex

send-message-to-java-host

Function
Summary

Sends a message to the Java host.

Package

lw-ji

Signature

send-message-to-java-host message-string where-keyword => result

Arguments

message-string

A string.

where-keyword

One of the keywords :append, :prepend, :append-no-scroll and :reset.

Values

result

A boolean.

Description

The function send-message-to-java-host sends a message to the Java host. It funcalls the function that was passed as the send-message-to-java-host argument to init-java-interface, or the default function, with message-string and where-keyword.

On Android init-java-interface is given a function that ends up calling the method com.lispworks.Manager.addMessage.

The default function checks the keyword and then writes the string to cl:*terminal-io*, which is probably good enough for testing purposes.

result is t if there is a function, and nil otherwise.

See also

init-java-interface
format-to-java-host


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex