From a065e04d529da1d847b5062a12c46d916408bf32 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 21:46:22 -0500 Subject: update based on https://github.com/mdn/yari/issues/2028 --- .../de/web/api/l10n.language.direction/index.html | 63 ---------- files/de/web/api/mozmobileconnection/index.html | 134 --------------------- .../selectnetworkautomatically/index.html | 57 --------- 3 files changed, 254 deletions(-) delete mode 100644 files/de/web/api/l10n.language.direction/index.html delete mode 100644 files/de/web/api/mozmobileconnection/index.html delete mode 100644 files/de/web/api/mozmobileconnection/selectnetworkautomatically/index.html (limited to 'files/de/web/api') diff --git a/files/de/web/api/l10n.language.direction/index.html b/files/de/web/api/l10n.language.direction/index.html deleted file mode 100644 index c469794d54..0000000000 --- a/files/de/web/api/l10n.language.direction/index.html +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: L10n.language.direction -slug: Web/API/L10n.language.direction -translation_of: Archive/B2G_OS/API/L10n/language/direction ---- -
{{ non-standard_header() }}
- -
 
- -
-

The language.direction property returns the direction (ltr or rtl) of the currently active language.

-
- -

Syntax

- -
var languageCode = navigator.mozL10n.language.direction;
- -

Value

- -

Returns the direction of the currently active language (ltr or rtl).

- -

Example

- -
navigator.mozL10n.ready(function() {
-  console.log('The current language's direction is ' + navigator.mozL10n.language.direction);
-});
-
- -

Specification

- -

Not part of any specification.

- -

See also

- - - - diff --git a/files/de/web/api/mozmobileconnection/index.html b/files/de/web/api/mozmobileconnection/index.html deleted file mode 100644 index f4d2882aab..0000000000 --- a/files/de/web/api/mozmobileconnection/index.html +++ /dev/null @@ -1,134 +0,0 @@ ---- -title: MozMobileConnection -slug: Web/API/MozMobileConnection -translation_of: Archive/B2G_OS/API/MozMobileConnection ---- -

{{APIRef("Firefox OS")}} {{ non-standard_header() }}

- -

{{ B2GOnlyHeader2('certified') }}

- -
-

This API is used to get information about the current mobile voice and data connection states of the device. It is accessible through {{domxref("window.navigator.mozMobileConnections","navigator.mozMobileConnections")}}, which returns an array of MozMobileConnection objects.

-
- -
-

Note: The syntax used to be window.navigator.mozMobileConnection, returning a single MozMobileConnection object, but this was updated in Firefox 1.3 due to the introduction of Multi-SIM support (Dual-SIM-Dual-Standby or DSDS).

-
- -

Interface overview

- -
callback EventHandler = any (Event event);
-
-interface MozMobileConnection : EventTarget
-{
-  const long ICC_SERVICE_CLASS_VOICE = (1 << 0);
-  const long ICC_SERVICE_CLASS_DATA = (1 << 1);
-  const long ICC_SERVICE_CLASS_FAX = (1 << 2);
-  const long ICC_SERVICE_CLASS_SMS = (1 << 3);
-  const long ICC_SERVICE_CLASS_DATA_SYNC = (1 << 4);
-  const long ICC_SERVICE_CLASS_DATA_ASYNC = (1 << 5);
-  const long ICC_SERVICE_CLASS_PACKET = (1 << 6);
-  const long ICC_SERVICE_CLASS_PAD = (1 << 7);
-  const long ICC_SERVICE_CLASS_MAX = (1 << 7);
-
-  readonly attribute MozMobileConnectionInfo voice;
-  readonly attribute MozMobileConnectionInfo data;
-  readonly attribute DOMString networkSelectionMode;
-  readonly attribute DOMString iccId;
-
-  DOMRequest getNetworks();
-  DOMRequest selectNetwork(MozMobileNetworkInfo network);
-  DOMRequest selectNetworkAutomatically();
-  DOMRequest sendMMI(DOMString mmi);
-  DOMRequest cancelMMI();
-  DOMRequest setCallForwardingOption(MozMobileCFInfo CFInfo);
-  DOMRequest getCallForwardingOption(unsigned short reason);
-
-  attribute EventHandler onvoicechange;
-  attribute EventHandler ondatachange;
-  attribute EventHandler onussdreceived;
-  attribute EventHandler ondataerror;
-  attribute EventHandler oncfstatechange;
-};
-
- -

Properties

- -
-
 
-
{{domxref("MozMobileConnection.voice")}} {{readonlyinline}}
-
A {{domxref("MozMobileConnectionInfo")}} object that gives access to information about the voice connection.
-
{{domxref("MozMobileConnection.data")}} {{readonlyinline}}
-
A {{domxref("MozMobileConnectionInfo")}} object that gives access to information about the data connection.
-
{{domxref("MozMobileConnection.iccId")}} {{readonlyinline}}
-
A string that indicates the Integrated Circuit Card Identifier of the SIM this mobile connection corresponds to.
-
{{domxref("MozMobileConnection.networkSelectionMode")}} {{readonlyinline}}
-
A string that indicates the selection mode of the voice and data networks.
-
{{domxref("MozMobileConnection.oncfstatechange")}}
-
A handler for the {{event("cfstatechange")}} event. This event is fired when the call forwarding state changes.
-
{{domxref("MozMobileConnection.ondatachange")}}
-
A handler for the {{event("datachange")}} event. This event is fired whenever the {{domxref("MozMobileConnection.data","data")}} connection object changes values.
-
{{domxref("MozMobileConnection.ondataerror")}}
-
A handler for the {{event("dataerror")}} event. This event is fired whenever the {{domxref("MozMobileConnection.data","data")}} connection object receive an error from the RIL.
-
{{domxref("MozMobileConnection.onussdreceived")}}
-
A handler for the {{event("ussdreceived")}} event. This event is fired whenever a new USSD message is received.
-
{{domxref("MozMobileConnection.onvoicechange")}}
-
A handler for the {{event("voicechange")}} event. This event is fired whenever the {{domxref("MozMobileConnection.voice","voice")}} connection object changes.
-
- -

Constants

- - - -

Methods

- -
-

Note: All original methods from the MozMobileConnection interface are fully asynchronous. They all return a {{domxref("DOMRequest")}} which has a onsuccess and onerror event handler to handle the success or failur of the method call.

-
- -
-
{{domxref("MozMobileConnection.cancelMMI()")}}
-
Cancel the current MMI request if one exists.
-
{{domxref("MozMobileConnection.getCallForwardingOption()")}}
-
Queries current call forward options.
-
{{domxref("MozMobileConnection.getNetworks()")}}
-
Search for available networks.
-
{{domxref("MozMobileConnection.selectNetwork()")}}
-
Manually selects a network, overriding the radio's current selection.
-
{{domxref("MozMobileConnection.selectNetworkAutomatically()")}}
-
Tell the radio to automatically select a network.
-
{{domxref("MozMobileConnection.sendMMI()")}}
-
Send a MMI message.
-
{{domxref("MozMobileConnection.setCallForwardingOption()")}}
-
Configures call forward options.
-
- -

The MozMobileConnection interface also inherit from the {{domxref("EventTarget")}} interface

- -

{{page("/en-US/docs/DOM/EventTarget","Methods")}}

- -

Specification

- -

Not part of any specification

- -

See also

- - diff --git a/files/de/web/api/mozmobileconnection/selectnetworkautomatically/index.html b/files/de/web/api/mozmobileconnection/selectnetworkautomatically/index.html deleted file mode 100644 index 242901b1c2..0000000000 --- a/files/de/web/api/mozmobileconnection/selectnetworkautomatically/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: MozMobileConnection.selectNetworkAutomatically -slug: Web/API/MozMobileConnection/selectNetworkAutomatically -translation_of: Archive/B2G_OS/API/MozMobileConnection/selectNetworkAutomatically ---- -

{{APIRef("Firefox OS")}} {{ non-standard_header() }}

- -

{{ B2GOnlyHeader2('certified') }}

- -

Summary

- -

The selectNetworkAutomatically method is used to tell the radio to automatically select a network.

- -
-

Note: If the network is actually changed by this request, the voicechange and datachange events are fired.

-
- -

Syntax

- -
var request = navigator.mozMobileConnection.selectNetworks();
- -

Return

- -

A {{domxref("DOMRequest")}} object to handle the success or failure of the method call.

- -

If the request fails, the request's error is one of:

- - - -

Example

- -
var switchNetwork = navigator.mozMobileConnection.selectNetworkAutomatically();
-
-switchNetwork.onsuccess = function () {
-  console.log('Successful switch');
-}
-
-switchNetwork.onerror = function () {
-  console.log('Unable to switch: ' + this.error.name);
-}
-
- -

Specification

- -

Not part of any specification.

- -

See also

- - -- cgit v1.2.3-54-g00ecf