setColorFilter abstract method
Sets the color filter.
resFile
: Filter effects package absolute path.
Return value:
- 0: Success.
- –1000: The Effects SDK is not integrated.
- –1001: This API is unavailable for your Effects SDK.
- –1002: Your Effects SDK's version is incompatible.
- < 0: Other error. See error code table for specific instructions.
Call setColorFilterIntensity to set the intensity of the color filter enabled. Set the intensity to 0 to turn off color filter.
Implementation
Future<int?> setColorFilter(String? resFile);