Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.07 KB

api-reference.md

File metadata and controls

45 lines (28 loc) · 1.07 KB

Signal API Usage

This document lists the APIs provided by Signal extension, along with sample code snippets on how to properly use the APIs.

For more in-depth information about the Signal extension, visit the official SDK documentation on Signal.

Registering Signal extension

Signal.EXTENSION represents a reference to the SignalExtension class that can be registered with MobileCore via its registerExtensions api.

Java
import com.adobe.marketing.mobile.Signal;

MobileCore.registerExtensions(Arrays.asList(Signal.EXTENSION, ...), new AdobeCallback<Object>() {
    // handle callback
});
Kotlin
import com.adobe.marketing.mobile.Signal

MobileCore.registerExtensions(Arrays.asList(Signal.EXTENSION, ...)){
    // handle callback
}

Getting Signal extension version

Java
final String signalExtensionVersion = Signal.extensionVersion();
Kotlin
val signalExtensionVersion: String = Signal.extensionVersion()