Android.Mms.PduManagement
1.0.0
dotnet add package Android.Mms.PduManagement --version 1.0.0
NuGet\Install-Package Android.Mms.PduManagement -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Android.Mms.PduManagement" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Android.Mms.PduManagement --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Android.Mms.PduManagement, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Android.Mms.PduManagement as a Cake Addin #addin nuget:?package=Android.Mms.PduManagement&version=1.0.0 // Install Android.Mms.PduManagement as a Cake Tool #tool nuget:?package=Android.Mms.PduManagement&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xamarin-android-mms-pdu-manager
A simple Xamarin.Android Bindings Library for parsing and composing PDUs
This is a wrapper library of the project at https://github.com/yasmanillanes/mms-pdu-manager
To compose a PDU into a byte array to send to an MMS Service Provider:
// First instantiate the PDU we will be turning into a byte array that
// will be ultimately sent to the MMS service provider.
// In this case, we are using a SendReq PDU type.
SendReq sendRequestPdu = new SendReq();
// Set the recipient number of our MMS
sendRequestPdu.AddTo(new EncodedStringValue("555-555-5555"));
// Instantiate the body of our MMS
PduBody pduBody = new PduBody();
// Attach a sample image to our MMS body
byte[] sampleImageData = LoadImageBytes();
PduPart sampleImagePduPart = new PduPart();
sampleImagePduPart.SetData(sampleImageData);
sampleImagePduPart.SetContentType(new EncodedStringValue("image/png").GetTextString());
sampleImagePduPart.SetFilename(new EncodedStringValue(SampleImageFileName).GetTextString());
pduBody.AddPart(sampleImagePduPart);
// Set the body of our MMS
sendRequestPdu.Body = pduBody;
// Finally, generate the byte array to send to the MMS provider
PduComposer composer = new PduComposer(sendRequestPdu);
byte[] pduData = composer.Make();
// Send pduData to service provider
To parse a PDU from a byte array we receive from an MMS Service Provider:
// First, load the bytes of our sample PDU that we usually get from the service provider
byte[] samplePduData = GetSampleData();
// Parse the byte array into a PDU object we can process
PduParser pduParser = new PduParser(samplePduData);
GenericPdu genericPdu = pduParser.Parse();
// Cast the PDU into a more specific type. In this case a NotificationInd type
NotificationInd notificationPdu = (NotificationInd)genericPdu;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid90 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,319 | 10/31/2018 |
Initial release