Method HasOptionalComponent
HasOptionalComponent(BuildContext, Type)
Determine if an optional Type component is stored in BuildSettings. The component Type must exist in the OptionalComponents list.
Declaration
public bool HasOptionalComponent(BuildContext context, Type type)
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context | The BuildContext used by the execution of this BuildStep. |
Type | type | Type of the optional component. |
Returns
Type | Description |
---|---|
bool | true if the optional component type is found, false otherwise. |
HasOptionalComponent<T>(BuildContext)
Determine if an optional T
component is stored in BuildSettings.
The component Type must exist in the OptionalComponents list.
Declaration
public bool HasOptionalComponent<T>(BuildContext context) where T : IBuildSettingsComponent
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context | The BuildContext used by the execution of this BuildStep. |
Returns
Type | Description |
---|---|
bool | true if the optional component type is found, false otherwise. |
Type Parameters
Name | Description |
---|---|
T | Type of the optional component. |