Core 1.0.0 - Unity C# API Reference Core 1.0.0 - Unity C# API Reference
Core 1.0.0 - Unity C# API Reference Core 1.0.0 - Unity C# API Reference
© 2025 Chartboost, Inc. All rights reserved.

Class NativeModuleWrapper<T>

Generic representation of a native Module, used to create the C# base class of a native module.

Inheritance
object
Module
NativeModuleWrapper<T>
Inherited Members
Module.ModuleReady
Module.UpdateCredentials(IReadOnlyDictionary<string, object>)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Chartboost.Core.Initialization
Assembly: Chartboost.Core.dll
Syntax
public abstract class NativeModuleWrapper<T> : Module where T : class
Type Parameters
Name Description
T

Module type.

Constructors

NativeModuleWrapper(params object[])

Declaration
protected NativeModuleWrapper(params object[] parameters)
Parameters
Type Name Description
object[] parameters

Properties

DefaultModuleId

Declaration
protected abstract string DefaultModuleId { get; }
Property Value
Type Description
string

DefaultModuleVersion

Declaration
protected abstract string DefaultModuleVersion { get; }
Property Value
Type Description
string

InstanceType

Declaration
public static Type InstanceType { get; set; }
Property Value
Type Description
Type

ModuleId

The module identifier.

Declaration
public override string ModuleId { get; }
Property Value
Type Description
string
Overrides
Module.ModuleId

ModuleVersion

The version of the module.

Declaration
public override string ModuleVersion { get; }
Property Value
Type Description
string
Overrides
Module.ModuleVersion

Methods

Initialize(ModuleConfiguration)

The designated initializer for the module. Sets up the module to make it ready to be used.

Declaration
protected override Task<ChartboostCoreError?> Initialize(ModuleConfiguration configuration)
Parameters
Type Name Description
ModuleConfiguration configuration
Returns
Type Description
Task<ChartboostCoreError?>

An error should be passed if the initialization failed, whereas null should be passed if it succeeded.

Overrides
Module.Initialize(ModuleConfiguration)

Extension Methods

ModuleExtensions.GetModuleAssemblyName<T>(T)