[CR][Yan] - define method in header file to support old SDK.