VoipCallCoordinator.RequestNewAppInitiatedCall メソッド

定義

システムから新しい呼び出しオブジェクトを要求します。 VoIP アプリからこのメソッドを呼び出して、新しい着信通話があること、およびその新しい呼び出しの着信通知をホストすることをシステムに伝えます。

public:
 virtual VoipPhoneCall ^ RequestNewAppInitiatedCall(Platform::String ^ context, Platform::String ^ contactName, Platform::String ^ contactNumber, Platform::String ^ serviceName, VoipPhoneCallMedia media) = RequestNewAppInitiatedCall;
VoipPhoneCall RequestNewAppInitiatedCall(winrt::hstring const& context, winrt::hstring const& contactName, winrt::hstring const& contactNumber, winrt::hstring const& serviceName, VoipPhoneCallMedia const& media);
public VoipPhoneCall RequestNewAppInitiatedCall(string context, string contactName, string contactNumber, string serviceName, VoipPhoneCallMedia media);
function requestNewAppInitiatedCall(context, contactName, contactNumber, serviceName, media)
Public Function RequestNewAppInitiatedCall (context As String, contactName As String, contactNumber As String, serviceName As String, media As VoipPhoneCallMedia) As VoipPhoneCall

パラメーター

context
String

Platform::String

winrt::hstring

関連付けられているフォアグラウンド アプリにディープ リンクとして渡される文字列。 最大長は 128 文字です。 このパラメーターは null 以外である必要があります。

contactName
String

Platform::String

winrt::hstring

着信呼び出し UI に表示される呼び出し元の連絡先名。 最大長は 128 文字です。

contactNumber
String

Platform::String

winrt::hstring

着信呼び出し UI に表示される呼び出し元の電話番号。 最大長は 128 文字です。

serviceName
String

Platform::String

winrt::hstring

VoIP サービスまたはアプリケーションの名前。 最大長は 128 文字です。

media
VoipPhoneCallMedia

新しい着信通話のメディアの種類 (オーディオとビデオまたはオーディオのみ)。 オーディオを渡 す|ユーザー が発信ビデオで通話に応答するオプションを持っている必要がある場合のビデオ。 これは、ユーザーのデバイスに、呼び出しが到着した時点でアプリで使用できるカメラがあることを前提としています。 そうでない場合、またはユーザーがオーディオのみを使用する必要がある場合は、Audio を渡 します

戻り値

新しく開始された呼び出しを表す オブジェクト。

Windows の要件

デバイス ファミリ
Windows 10, version 1803 (10.0.17134.0 で導入)
API contract
Windows.ApplicationModel.Calls.CallsVoipContract (v3.0 で導入)
アプリの機能
backgroundVoIP voipCall

注釈

新しい VoipPhoneCall オブジェクトを作成するには、このメソッドを使用します。 VoipPhoneCall オブジェクトを使用すると、アプリ内通話通知を送信したり、VoipPhoneCall で発生するイベントを処理したりできます。 これらの通知とイベントを操作する方法の詳細については、「 VoipPhoneCall 」を参照してください。

適用対象

こちらもご覧ください