Skip to main content
Version: 14.x (API 14) [Current]

Interface IIdDataShareAdapter

An interface to provide live IPC adapters that can invoke methods directly using custom IDs without the runtime overhead of IPC queries.

Remarks

Implement only methods you actually need. This can then be used to create a wrapper encapsulating the actually available methods or properties, either by the provider library, or on the consumer side.

Assembly: Dalamud.dll
Declaration
public interface IIdDataShareAdapter : IDisposable

Methods

Invoke(int)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke(int methodId)
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1>(int, T1)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1>(int methodId, T1 argument1) where T1 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2>(int, T1, T2)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2>(int methodId, T1 argument1, T2 argument2) where T1 : allows ref struct where T2 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3>(int, T1, T2, T3)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3>(int methodId, T1 argument1, T2 argument2, T3 argument3) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3, T4>(int, T1, T2, T3, T4)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3, T4>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3, T4, T5>(int, T1, T2, T3, T4, T5)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3, T4, T5>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3, T4, T5, T6>(int, T1, T2, T3, T4, T5, T6)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3, T4, T5, T6>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3, T4, T5, T6, T7>(int, T1, T2, T3, T4, T5, T6, T7)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3, T4, T5, T6, T7>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, T7 argument7) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where T7 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<T7>argument7The seventh argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
T7The seventh parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3, T4, T5, T6, T7, T8>(int, T1, T2, T3, T4, T5, T6, T7, T8)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3, T4, T5, T6, T7, T8>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, T7 argument7, T8 argument8) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where T7 : allows ref struct where T8 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<T7>argument7The seventh argument.
<T8>argument8The eighth argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
T7The seventh parameter type. This needs to be a type known to Dalamud again.
T8The eight parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

Invoke<T1, T2, T3, T4, T5, T6, T7, T8, T9>(int, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Try to invoke an action by a custom integral ID using generic arguments.

Declaration
void Invoke<T1, T2, T3, T4, T5, T6, T7, T8, T9>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, T7 argument7, T8 argument8, T9 argument9) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where T7 : allows ref struct where T8 : allows ref struct where T9 : allows ref struct
Parameters
TypeNameDescription
System.Int32methodIdThe custom integral ID of the method.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<T7>argument7The seventh argument.
<T8>argument8The eighth argument.
<T9>argument9The ninth argument.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
T7The seventh parameter type. This needs to be a type known to Dalamud again.
T8The eight parameter type. This needs to be a type known to Dalamud again.
T9The ninth parameter type. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument.

The method should generally be implemented as a switch-statement.

TryInvoke<TRet>(int, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<TRet>(int methodId, out TRet? ret) where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, TRet>(int, T1, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, TRet>(int methodId, T1 argument1, out TRet? ret) where T1 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, TRet>(int, T1, T2, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, TRet>(int methodId, T1 argument1, T2 argument2, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, TRet>(int, T1, T2, T3, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, T4, TRet>(int, T1, T2, T3, T4, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, T4, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, T4, T5, TRet>(int, T1, T2, T3, T4, T5, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, T4, T5, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, T4, T5, T6, TRet>(int, T1, T2, T3, T4, T5, T6, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, T4, T5, T6, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, T4, T5, T6, T7, TRet>(int, T1, T2, T3, T4, T5, T6, T7, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, T4, T5, T6, T7, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, T7 argument7, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where T7 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<T7>argument7The seventh argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
T7The seventh parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(int, T1, T2, T3, T4, T5, T6, T7, T8, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, T7 argument7, T8 argument8, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where T7 : allows ref struct where T8 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<T7>argument7The seventh argument.
<T8>argument8The eighth argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
T7The seventh parameter type. This needs to be a type known to Dalamud again.
T8The eight parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.

TryInvoke<T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>(int, T1, T2, T3, T4, T5, T6, T7, T8, T9, out TRet?)

Try to invoke a function by a custom integral ID using generic arguments.

Declaration
bool TryInvoke<T1, T2, T3, T4, T5, T6, T7, T8, T9, TRet>(int methodId, T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5, T6 argument6, T7 argument7, T8 argument8, T9 argument9, out TRet? ret) where T1 : allows ref struct where T2 : allows ref struct where T3 : allows ref struct where T4 : allows ref struct where T5 : allows ref struct where T6 : allows ref struct where T7 : allows ref struct where T8 : allows ref struct where T9 : allows ref struct where TRet : allows ref struct
Returns

System.Boolean: True if the invocation was successful, false otherwise.

Parameters
TypeNameDescription
System.Int32methodIdThe name of the method to invoke.
<T1>argument1The first argument.
<T2>argument2The second argument.
<T3>argument3The third argument.
<T4>argument4The fourth argument.
<T5>argument5The fifth argument.
<T6>argument6The sixth argument.
<T7>argument7The seventh argument.
<T8>argument8The eighth argument.
<T9>argument9The ninth argument.
<TRet>retThe returned value on success, undefined on failure.
Type Parameters
NameDescription
T1The first parameter type. This needs to be a type known to Dalamud again.
T2The second parameter type. This needs to be a type known to Dalamud again.
T3The third parameter type. This needs to be a type known to Dalamud again.
T4The fourth parameter type. This needs to be a type known to Dalamud again.
T5The fifth parameter type. This needs to be a type known to Dalamud again.
T6The sixth parameter type. This needs to be a type known to Dalamud again.
T7The seventh parameter type. This needs to be a type known to Dalamud again.
T8The eight parameter type. This needs to be a type known to Dalamud again.
T9The ninth parameter type. This needs to be a type known to Dalamud again.
TRetThe type of the returned value. This needs to be a type known to Dalamud again.
Remarks

Should throw Dalamud.Plugin.Ipc.AdapterMethodMissingException if the requested method does not exist.

Should throw Dalamud.Plugin.Ipc.AdapterTypeMismatchException if the requested method can not handle a provided argument or the return value.

The method should generally be implemented as a switch-statement.