Share via


AVAssetWriterInput Costruttori

Definizione

Overload

AVAssetWriterInput(NSObjectFlag)

Costruttore da chiamare sulle classi derivate per ignorare l'inizializzazione e allocare semplicemente l'oggetto.

AVAssetWriterInput(IntPtr)

Costruttore utilizzato durante la creazione di rappresentazioni gestite di oggetti non gestiti; Chiamato dal runtime.

AVAssetWriterInput(String, AudioSettings)

Crea un nuovo elemento AVAssetWriterInput con mediaType e outputSettings specificati.

AVAssetWriterInput(String, AVVideoSettingsCompressed)

Crea un nuovo elemento AVAssetWriterInput con mediaType e outputSettings specificati.

AVAssetWriterInput(String, NSDictionary)

Crea un nuovo AVAssetWriterInput oggetto con l'oggetto e outputSettingsspecificatomediaType.

AVAssetWriterInput(String, AudioSettings, CMFormatDescription)

Crea un nuovo AVAssetWriterInput oggetto con gli oggetti , outputSettingse sourceFormatHintspecificatimediaType.

AVAssetWriterInput(String, AVVideoSettingsCompressed, CMFormatDescription)

Crea un nuovo AVAssetWriterInput oggetto con gli oggetti , outputSettingse sourceFormatHintspecificatimediaType.

AVAssetWriterInput(String, NSDictionary, CMFormatDescription)

Crea un nuovo AVAssetWriterInput oggetto con gli oggetti , outputSettingse sourceFormatHintspecificatimediaType.

AVAssetWriterInput(NSObjectFlag)

Costruttore da chiamare sulle classi derivate per ignorare l'inizializzazione e allocare semplicemente l'oggetto.

protected AVAssetWriterInput (Foundation.NSObjectFlag t);
new AVFoundation.AVAssetWriterInput : Foundation.NSObjectFlag -> AVFoundation.AVAssetWriterInput

Parametri

t
NSObjectFlag

Valore sentinel inutilizzato, passare NSObjectFlag.Empty.

Commenti

Questo costruttore deve essere chiamato dalle classi derivate quando costruiscono completamente l'oggetto nel codice gestito e vogliono semplicemente che il runtime allochi e inizializzi NSObject. Questa operazione è necessaria per implementare il processo di inizializzazione in due passaggi usato da Objective-C, il primo passaggio consiste nell'eseguire l'allocazione dell'oggetto, il secondo passaggio consiste nell'inizializzare l'oggetto. Quando gli sviluppatori richiamano il costruttore che accetta NSObjectFlag.Empty sfruttano un percorso diretto che va fino a NSObject per allocare semplicemente la memoria dell'oggetto e associare gli oggetti Objective-C e C#. L'inizializzazione effettiva dell'oggetto spetta allo sviluppatore.

Questo costruttore viene in genere usato dal generatore di associazioni per allocare l'oggetto, ma impedisce che venga eseguita l'inizializzazione effettiva. Dopo aver eseguito l'allocazione, il costruttore deve inizializzare l'oggetto. Con i costruttori generati dal generatore di binding, ciò significa che richiama manualmente uno dei metodi "init" per inizializzare l'oggetto.

È responsabilità dello sviluppatore inizializzare completamente l'oggetto se esegue la concatenamento usando il percorso NSObjectFlag.Empty.

In generale, se il costruttore dello sviluppatore richiama l'implementazione di base NSObjectFlag.Empty, deve chiamare un metodo init Objective-C. In caso contrario, gli sviluppatori devono invece concatenarsi al costruttore appropriato nella classe.

Il valore dell'argomento viene ignorato e garantisce semplicemente che l'unico codice eseguito sia la fase di costruzione sia l'allocazione NSObject di base e la registrazione del tipo di runtime. In genere il concatenamento sarà simile al seguente:

//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
	var initWithFrame = new Selector ("initWithFrame:").Handle;
	if (IsDirectBinding)
		Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
	else
		Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}

Si applica a

AVAssetWriterInput(IntPtr)

Costruttore utilizzato durante la creazione di rappresentazioni gestite di oggetti non gestiti; Chiamato dal runtime.

protected internal AVAssetWriterInput (IntPtr handle);
new AVFoundation.AVAssetWriterInput : nativeint -> AVFoundation.AVAssetWriterInput

Parametri

handle
IntPtr

nativeint

Puntatore (handle) all'oggetto non gestito.

Commenti

Questo costruttore viene richiamato dall'infrastruttura di runtime (GetNSObject(IntPtr)) per creare una nuova rappresentazione gestita per un puntatore a un oggetto Objective-C non gestito. Gli sviluppatori non devono richiamare direttamente questo metodo, ma devono chiamare il metodo GetNSObject perché impedirà a due istanze di un oggetto gestito di puntare allo stesso oggetto nativo.

Si applica a

AVAssetWriterInput(String, AudioSettings)

Crea un nuovo elemento AVAssetWriterInput con mediaType e outputSettings specificati.

public AVAssetWriterInput (string mediaType, AVFoundation.AudioSettings outputSettings);
new AVFoundation.AVAssetWriterInput : string * AVFoundation.AudioSettings -> AVFoundation.AVAssetWriterInput

Parametri

mediaType
String
outputSettings
AudioSettings

Si applica a

AVAssetWriterInput(String, AVVideoSettingsCompressed)

Crea un nuovo elemento AVAssetWriterInput con mediaType e outputSettings specificati.

public AVAssetWriterInput (string mediaType, AVFoundation.AVVideoSettingsCompressed outputSettings);
new AVFoundation.AVAssetWriterInput : string * AVFoundation.AVVideoSettingsCompressed -> AVFoundation.AVAssetWriterInput

Parametri

mediaType
String
outputSettings
AVVideoSettingsCompressed

Si applica a

AVAssetWriterInput(String, NSDictionary)

Crea un nuovo AVAssetWriterInput oggetto con l'oggetto e outputSettingsspecificatomediaType.

[Foundation.Export("initWithMediaType:outputSettings:")]
protected AVAssetWriterInput (string mediaType, Foundation.NSDictionary outputSettings);
new AVFoundation.AVAssetWriterInput : string * Foundation.NSDictionary -> AVFoundation.AVAssetWriterInput

Parametri

mediaType
String
outputSettings
NSDictionary

Il dizionario deve contenere informazioni di configurazione usando le chiavi di AVAudioSettings e AVVideo.

Questo parametro può essere null.

Attributi

Si applica a

AVAssetWriterInput(String, AudioSettings, CMFormatDescription)

Crea un nuovo AVAssetWriterInput oggetto con gli oggetti , outputSettingse sourceFormatHintspecificatimediaType.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public AVAssetWriterInput (string mediaType, AVFoundation.AudioSettings outputSettings, CoreMedia.CMFormatDescription sourceFormatHint);
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public AVAssetWriterInput (string mediaType, AVFoundation.AudioSettings outputSettings, CoreMedia.CMFormatDescription sourceFormatHint);
new AVFoundation.AVAssetWriterInput : string * AVFoundation.AudioSettings * CoreMedia.CMFormatDescription -> AVFoundation.AVAssetWriterInput

Parametri

mediaType
String
outputSettings
AudioSettings
sourceFormatHint
CMFormatDescription
Attributi

Si applica a

AVAssetWriterInput(String, AVVideoSettingsCompressed, CMFormatDescription)

Crea un nuovo AVAssetWriterInput oggetto con gli oggetti , outputSettingse sourceFormatHintspecificatimediaType.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public AVAssetWriterInput (string mediaType, AVFoundation.AVVideoSettingsCompressed outputSettings, CoreMedia.CMFormatDescription sourceFormatHint);
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public AVAssetWriterInput (string mediaType, AVFoundation.AVVideoSettingsCompressed outputSettings, CoreMedia.CMFormatDescription sourceFormatHint);
new AVFoundation.AVAssetWriterInput : string * AVFoundation.AVVideoSettingsCompressed * CoreMedia.CMFormatDescription -> AVFoundation.AVAssetWriterInput

Parametri

mediaType
String
outputSettings
AVVideoSettingsCompressed
sourceFormatHint
CMFormatDescription
Attributi

Si applica a

AVAssetWriterInput(String, NSDictionary, CMFormatDescription)

Crea un nuovo AVAssetWriterInput oggetto con gli oggetti , outputSettingse sourceFormatHintspecificatimediaType.

[Foundation.Export("initWithMediaType:outputSettings:sourceFormatHint:")]
[ObjCRuntime.DesignatedInitializer]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
protected AVAssetWriterInput (string mediaType, Foundation.NSDictionary outputSettings, CoreMedia.CMFormatDescription sourceFormatHint);
[Foundation.Export("initWithMediaType:outputSettings:sourceFormatHint:")]
[ObjCRuntime.DesignatedInitializer]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
protected AVAssetWriterInput (string mediaType, Foundation.NSDictionary outputSettings, CoreMedia.CMFormatDescription sourceFormatHint);
new AVFoundation.AVAssetWriterInput : string * Foundation.NSDictionary * CoreMedia.CMFormatDescription -> AVFoundation.AVAssetWriterInput

Parametri

mediaType
String
outputSettings
NSDictionary

Il dizionario deve contenere informazioni di configurazione usando le chiavi di AVAudioSettings e AVVideo.

Questo parametro può essere null.

sourceFormatHint
CMFormatDescription

Da aggiungere.

Questo parametro può essere null.

Attributi

Si applica a