public class HardwareWalletEvent extends Object
High level event to provide the following to downstream consumers:
Hardware wallet events provide a suitably abstracted view of the wallet to allow downstream consumers to concentrate on user interface changes as a result of the current state of the hardware wallet. For example, if the device is awaiting a button press the downstream UI should present a popup dialog indicating that the user should look to their device.
Constructor and Description |
---|
HardwareWalletEvent(HardwareWalletEventType eventType,
com.google.common.base.Optional<HardwareWalletMessage> message,
String source) |
Modifier and Type | Method and Description |
---|---|
HardwareWalletEventType |
getEventType() |
com.google.common.base.Optional<HardwareWalletMessage> |
getMessage() |
String |
getSource() |
public HardwareWalletEvent(HardwareWalletEventType eventType, com.google.common.base.Optional<HardwareWalletMessage> message, String source)
eventType
- The hardware wallet event typemessage
- The hardware wallet message adapted from the wiresource
- The client name acting as the source (e.g. "TREZOR", "KEEP_KEY" etc)public HardwareWalletEventType getEventType()
public com.google.common.base.Optional<HardwareWalletMessage> getMessage()
public String getSource()
Copyright © 2013–2019 Bitcoin Solutions Ltd. All rights reserved.