change method signature to follow ios plugin