# RegisterComponentLifecycleCallback(Type, ComponentLifecycleDelegate, ComponentLifecycleDelegate, bool, bool, bool, bool)

> Used by ILPP-generated code to register component lifecycle callbacks. Called from generated EarlyInit() methods.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
[ExcludeFromBurstCompatTesting("Uses managed delegates")]
public static void RegisterComponentLifecycleCallback(Type componentType, TypeManager.ComponentLifecycleDelegate onAddedFn, TypeManager.ComponentLifecycleDelegate onRemovedFn, bool hasOnAdded, bool hasOnRemoved, bool onAddedIsBurst, bool onRemovedIsBurst)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Component Type**** (\[ComponentLifecycleDelegate]\(/engine/7000.0/script-reference/unity/entities/typemanager/componentlifecycledelegate)): OnAdded delegate (or null)**** (\[ComponentLifecycleDelegate]\(/engine/7000.0/script-reference/unity/entities/typemanager/componentlifecycledelegate)): OnRemoved delegate (or null)**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether OnAdded callback exists**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether OnRemoved callback exists**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether OnAdded is Burst-compiled**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether OnRemoved is Burst-compiled
