add platform specific functions

Added functions usable by specific platforms (ios and Android). This version currently works on Android but not ios. Going to fix once
dev environment is properly set up on mac mini.