add apis to get/set launch mode

No match.