Simplify interface api of native context.