Skip to content

function_login

Wesley de Groot edited this page Jan 2, 2016 · 6 revisions

tvOS.login(title, callback, text, image, callback_register, register, needPWD)

a login form!

Parameters

Type @var Description Required
string title title of the login screen Required
function callback Callback Required
string text button text Required
string [image] show a image? Optional
function [callback_register] register callback action Optional
string [register] register button text (empty=none) Optional

Example

tvOS.login('Please login', function (data) {
  console.log(data)
}, 'Login', '', function (register_email) {
  console.log(register_email)
}, 'Register') // Example with Register (no image)



Back to function list