Makes a phone call to the specified number.

Usage #

package main

import (
    "fmt"
    t "github.com/hugmouse/gotermux"
)

func main() {
    result := t.TermuxTelephonyCall("+1234567890")
    fmt.Printf("Call result: Code=%d, Text=%s\n", result.Code, result.Text)
}

Parameters #

  • number string - Phone number to call (include country code)

Return Value #

Returns TResult with call status information.

This function requires the CALL_PHONE permission and will prompt the user for permission when first used.