registercomponentcallbacks is sdk >= 14 only