-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/mcumming/fix-build-repository-title
- Loading branch information
Showing
162 changed files
with
6,567 additions
and
3,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<Documentation> | ||
<Docs DocId="P:AudioToolbox.AudioQueue.CurrentLevelMeter"> | ||
<summary>Current Level meters, one per channel in the range zero (minimum) to one (maximum).</summary> | ||
<value>Array of level meters, one per audio channel.</value> | ||
<remarks> | ||
<para> | ||
To use this property, make sure that you set the <see cref="P:AudioToolbox.AudioQueue.EnableLevelMetering" /> property on the queue. | ||
</para> | ||
<para> | ||
Use the <see cref="P:AudioToolbox.AudioQueue.CurrentLevelMeterDB" /> if you want to get the values in decibels. | ||
</para> | ||
<example> | ||
<code lang="c#"><![CDATA[ | ||
class MyInputQueue : InputAudioQueue { | ||
public MyQueueInput (AudioStreamBasicDescription desc) : base (desc) | ||
{ | ||
inputQueue.EnableLevelMetering = true; | ||
} | ||
protected virtual void OnInputCompleted (IntPtr audioQueueBuffer, | ||
AudioTimeStamp timeStamp, | ||
AudioStreamPacketDescription [] packetData) | ||
{ | ||
var levels = CurrentLevelMeterDB; | ||
for (int channel = 0; channel < levels.Count; channel.Length) | ||
Console.WriteLine ("Channel {0} Average Power: {1} Peak Power: {2}", | ||
channel, levels [channel].AveragePower, levels [channel].PeakPower); | ||
} | ||
} | ||
}]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
<Docs DocId="P:AudioToolbox.AudioQueue.CurrentLevelMeterDB"> | ||
<summary>Current Level meters, one per channel in decibels.</summary> | ||
<value>Array of level meters, one per audio channel.</value> | ||
<remarks> | ||
<para> | ||
To use this property, make sure that you set the <see cref="P:AudioToolbox.AudioQueue.EnableLevelMetering" /> property on the queue. | ||
</para> | ||
<para> | ||
Use the <see cref="P:AudioToolbox.AudioQueue.CurrentLevelMeter" /> if you want to get the values normalized to the range zero (minimum) to one (maximum). | ||
</para> | ||
<example> | ||
<code lang="c#"><![CDATA[ | ||
class MyInputQueue : InputAudioQueue { | ||
public MyQueueInput (AudioStreamBasicDescription desc) : base (desc) | ||
{ | ||
inputQueue.EnableLevelMetering = true; | ||
} | ||
protected virtual void OnInputCompleted (IntPtr audioQueueBuffer, | ||
AudioTimeStamp timeStamp, | ||
AudioStreamPacketDescription [] packetData) | ||
{ | ||
var levels = CurrentLevelMeterDB; | ||
for (int channel = 0; channel < levels.Count; channel.Length) | ||
Console.WriteLine ("Channel {0} Average Power: {1} Peak Power: {2}", | ||
channel, levels [channel].AveragePower, levels [channel].PeakPower); | ||
} | ||
} | ||
}]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<Documentation> | ||
<Docs DocId="P:AudioUnit.AUAudioUnit.AudioComponentRegistrationsChangedNotification"> | ||
<summary>Notification constant for AudioComponentRegistrationsChanged</summary> | ||
<value>NSString constant, should be used as a token to NSNotificationCenter.</value> | ||
<remarks> | ||
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// Lambda style | ||
NSNotificationCenter.DefaultCenter.AddObserver ( | ||
AUAudioUnit.AudioComponentRegistrationsChangedNotification, (notification) => {Console.WriteLine ("Received the notification AUAudioUnit", notification); } | ||
// Method style | ||
void Callback (NSNotification notification) | ||
{ | ||
Console.WriteLine ("Received a notification AUAudioUnit", notification); | ||
} | ||
void Setup () | ||
{ | ||
NSNotificationCenter.DefaultCenter.AddObserver (AUAudioUnit.AudioComponentRegistrationsChangedNotification, Callback); | ||
} | ||
]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
<Docs DocId="P:AudioUnit.AUAudioUnit.AudioComponentInstanceInvalidationNotification"> | ||
<summary>Notification constant for AudioComponentInstanceInvalidation</summary> | ||
<value>NSString constant, should be used as a token to NSNotificationCenter.</value> | ||
<remarks> | ||
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// Lambda style | ||
NSNotificationCenter.DefaultCenter.AddObserver ( | ||
AUAudioUnit.AudioComponentInstanceInvalidationNotification, (notification) => {Console.WriteLine ("Received the notification AUAudioUnit", notification); } | ||
// Method style | ||
void Callback (NSNotification notification) | ||
{ | ||
Console.WriteLine ("Received a notification AUAudioUnit", notification); | ||
} | ||
void Setup () | ||
{ | ||
NSNotificationCenter.DefaultCenter.AddObserver (AUAudioUnit.AudioComponentInstanceInvalidationNotification, Callback); | ||
} | ||
]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<Documentation> | ||
<Docs DocId="F:AudioUnit.AudioComponentDescription.ComponentSubType"> | ||
<summary>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentSubType" /> value you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" /></summary> | ||
<remarks> | ||
<para>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentType" /> you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" />.</para> | ||
<para /> | ||
<para>Since this is an integer, and the values on those enumerations are strongly typed, you typically need to cast. The following example shows this:</para> | ||
<para /> | ||
<para /> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[var processingGraph = new AUGraph (); | ||
int samplerNode, ioNode; | ||
var musicSampler = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.MusicDevice, | ||
ComponentSubType = (int)AudioTypeMusicDevice.Sampler | ||
}; | ||
samplerNode = processingGraph.AddNode (musicSampler); | ||
var remoteOutput = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.Output, | ||
ComponentSubType = (int)AudioTypeOutput.Remote | ||
}; | ||
ioNode = processingGraph.AddNode (remoteOutput); | ||
processingGraph.Open ();]]></code> | ||
</example>.</remarks> | ||
</Docs> | ||
<Docs DocId="F:AudioUnit.AudioComponentDescription.ComponentSubType"> | ||
<summary>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentSubType" /> value you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" /></summary> | ||
<remarks> | ||
<para>Audio Unit component subtype, depending on the <see cref="F:AudioUnit.AudioComponentDescription.ComponentType" /> you should use one of the values from <see cref="T:AudioUnit.AudioTypeOutput" />, <see cref="T:AudioUnit.AudioTypeMusicDevice" />, <see cref="T:AudioUnit.AudioTypeConverter" />, <see cref="T:AudioUnit.AudioTypeEffect" />, <see cref="T:AudioUnit.AudioTypeMixer" />, <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=T:AudioUnit.AudioTypePanner,&scope=Xamarin" title="T:AudioUnit.AudioTypePanner,">T:AudioUnit.AudioTypePanner,</a></format> <see cref="T:AudioUnit.AudioTypeGenerator" />.</para> | ||
<para /> | ||
<para>Since this is an integer, and the values on those enumerations are strongly typed, you typically need to cast. The following example shows this:</para> | ||
<para /> | ||
<para /> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[var processingGraph = new AUGraph (); | ||
int samplerNode, ioNode; | ||
var musicSampler = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.MusicDevice, | ||
ComponentSubType = (int)AudioTypeMusicDevice.Sampler | ||
}; | ||
samplerNode = processingGraph.AddNode (musicSampler); | ||
var remoteOutput = new AudioComponentDescription () { | ||
ComponentManufacturer = AudioComponentManufacturerType.Apple, | ||
ComponentType = AudioComponentType.Output, | ||
ComponentSubType = (int)AudioTypeOutput.Remote | ||
}; | ||
ioNode = processingGraph.AddNode (remoteOutput); | ||
processingGraph.Open ();]]></code> | ||
</example>.</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<Documentation> | ||
<Docs DocId="P:CoreLocation.CLPlacemark.AddressDictionary"> | ||
<summary>Developers should not use this deprecated property. Developers should use 'CLPlacemark' properties to access data.</summary> | ||
<value>To be added.</value> | ||
<remarks> | ||
<para>Available keys are:</para> | ||
<list type="bullet"> | ||
<item> | ||
<term> | ||
<see cref="P:AddressBook.ABPersonAddressKey.Street" /> | ||
</term> | ||
</item> | ||
<item> | ||
<term> | ||
<see cref="P:AddressBook.ABPersonAddressKey.City" /> | ||
</term> | ||
</item> | ||
<item> | ||
<term> | ||
<see cref="P:AddressBook.ABPersonAddressKey.State" /> | ||
</term> | ||
</item> | ||
<item> | ||
<term> | ||
<see cref="P:AddressBook.ABPersonAddressKey.Zip" /> | ||
</term> | ||
</item> | ||
<item> | ||
<term> | ||
<see cref="P:AddressBook.ABPersonAddressKey.Country" /> | ||
</term> | ||
</item> | ||
<item> | ||
<term> | ||
<see cref="P:AddressBook.ABPersonAddressKey.CountryCode" /> | ||
</term> | ||
</item> | ||
</list> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<Documentation> | ||
<Docs DocId="P:CoreMidi.Midi.NetworkNotificationContactsDidChange"> | ||
<summary>Notification raised when the MIDI network has changed.</summary> | ||
<value> | ||
</value> | ||
<remarks> | ||
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para> | ||
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:MediaPlayer.MPMediaLibrary.Notifications" />.<see cref="M:CoreMidi.Midi.Notifications.ObserveNetworkNotificationContactsDidChange(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})" /> method which offers strongly typed access to the parameters of the notification.</para> | ||
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// | ||
// Lambda style | ||
// | ||
// listening | ||
notification = Midi.Notifications.ObserveNetworkNotificationContactsDidChange ((sender, args) => { | ||
/* Access strongly typed args */ | ||
Console.WriteLine ("Notification: {0}", args.Notification); | ||
}); | ||
// To stop listening: | ||
notification.Dispose (); | ||
// | ||
// Method style | ||
// | ||
NSObject notification; | ||
void Callback (object sender, Foundation.NSNotificationEventArgs args) | ||
{ | ||
// Access strongly typed args | ||
Console.WriteLine ("Notification: {0}", args.Notification); | ||
} | ||
void Setup () | ||
{ | ||
notification = Midi.Notifications.ObserveNetworkNotificationContactsDidChange (Callback); | ||
} | ||
void Teardown () | ||
{ | ||
notification.Dispose (); | ||
}]]></code> | ||
</example> | ||
<para>The following example shows how to use the notification with the DefaultCenter API:</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// Lambda style | ||
NSNotificationCenter.DefaultCenter.AddObserver ( | ||
Midi.NetworkNotificationContactsDidChange, (notification) => {Console.WriteLine ("Received the notification Midi", notification); } | ||
// Method style | ||
void Callback (NSNotification notification) | ||
{ | ||
Console.WriteLine ("Received a notification Midi", notification); | ||
} | ||
void Setup () | ||
{ | ||
NSNotificationCenter.DefaultCenter.AddObserver (Midi.NetworkNotificationContactsDidChange, Callback); | ||
} | ||
]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
<Docs DocId="P:CoreMidi.Midi.NetworkNotificationSessionDidChange"> | ||
<summary>Notification raised when the MIDI session has changed</summary> | ||
<value> | ||
</value> | ||
<remarks> | ||
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para> | ||
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:MediaPlayer.MPMediaLibrary.Notifications" />.<see cref="M:CoreMidi.Midi.Notifications.ObserveNetworkNotificationSessionDidChange(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})" /> method which offers strongly typed access to the parameters of the notification.</para> | ||
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// | ||
// Lambda style | ||
// | ||
// listening | ||
notification = Midi.Notifications.ObserveNetworkNotificationSessionDidChange ((sender, args) => { | ||
/* Access strongly typed args */ | ||
Console.WriteLine ("Notification: {0}", args.Notification); | ||
}); | ||
// To stop listening: | ||
notification.Dispose (); | ||
// | ||
// Method style | ||
// | ||
NSObject notification; | ||
void Callback (object sender, Foundation.NSNotificationEventArgs args) | ||
{ | ||
// Access strongly typed args | ||
Console.WriteLine ("Notification: {0}", args.Notification); | ||
} | ||
void Setup () | ||
{ | ||
notification = Midi.Notifications.ObserveNetworkNotificationSessionDidChange (Callback); | ||
} | ||
void Teardown () | ||
{ | ||
notification.Dispose (); | ||
}]]></code> | ||
</example> | ||
<para>The following example shows how to use the notification with the DefaultCenter API:</para> | ||
<example> | ||
<code lang="csharp lang-csharp"><![CDATA[ | ||
// Lambda style | ||
NSNotificationCenter.DefaultCenter.AddObserver ( | ||
Midi.NetworkNotificationSessionDidChange, (notification) => {Console.WriteLine ("Received the notification Midi", notification); } | ||
// Method style | ||
void Callback (NSNotification notification) | ||
{ | ||
Console.WriteLine ("Received a notification Midi", notification); | ||
} | ||
void Setup () | ||
{ | ||
NSNotificationCenter.DefaultCenter.AddObserver (Midi.NetworkNotificationSessionDidChange, Callback); | ||
} | ||
]]></code> | ||
</example> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Documentation> | ||
<Docs DocId="P:MultipeerConnectivity.MCAdvertiserAssistant.DiscoveryInfo"> | ||
<summary>A small dictionary of data available to browsers.</summary> | ||
<value>This will contain the data passed in to the <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=C:MultipeerConnectivity.MCAdvertiserAssistant(string,Foundation.NSDictionary, MultipeerConnectivity.MCSession)&scope=Xamarin" title="C:MultipeerConnectivity.MCAdvertiserAssistant(string,Foundation.NSDictionary, MultipeerConnectivity.MCSession)">C:MultipeerConnectivity.MCAdvertiserAssistant(string,Foundation.NSDictionary, MultipeerConnectivity.MCSession)</a></format> constructor.</value> | ||
<remarks> | ||
<para>The total size of keys and data in this dictionary should be less than ~400 bytes so that it can fit into a single Bluetooth data packet.</para> | ||
<para>The dictionary should map <see langword="string" />s to <see langword="string" />s. Each key-value pair must be no more than 255 bytes with the equals sign inserted between them (i.e., <c>System.Text.ASCIIEncoding.Unicode.GetByteCount(String.Format("{0}={1}",key,value)) <= 255 </c>). Keys may not contain equals signs.</para> | ||
<para>The dictionary is advertised as a Bonjour TXT record (see <format type="text/html"><a href="https://tools.ietf.org/html/rfc6763">RFC 6763, Section 6</a></format>).</para> | ||
</remarks> | ||
</Docs> | ||
</Documentation> |
Oops, something went wrong.