Questions tagged [xamarin-binding]
96 questions
1
vote
0 answers
How to map java.time.Instant to Nodatime.Instant when creating a Xamarin Android Native binding
I'm creating a Xamarin Native binding for an Android library, and one of the issues I notice is that types from java.time (specifically java.time.Instant type) does not get mapped. I assume because of this issue:…

Kikanye
- 1,198
- 1
- 14
- 33
1
vote
1 answer
Weird 'Native linking failed, undefined Objective-C class' when Xamarin-iOS nuget is generated from Azure Pipeline (but not when it's built locally)
I have Xamarin-iOS binding-project which upon being built generates a nuget. Said nuget works as intended in Xamarin-iOS applications if and only if I built it on my Mac.
However, when I build this nuget via Azure Pipelines using MacOS-12 as the…

XDS
- 3,786
- 2
- 36
- 56
1
vote
0 answers
C# overriden method not being invoked when the underlying swift method gets invoked
I have a xamarin C# bindings-project that wraps around a trivial swift library. The swift library contains a class like so:
@objc(Foobar)
public class Foobar: NSObject {
@objc
public func pingpong() { // <--- this gets invoked in swift at…

XDS
- 3,786
- 2
- 36
- 56
1
vote
1 answer
Xamarin.Forms - How to select item from its containing ListView with ObservableCollection
I have an ListView bound to an ObservableCollection as shown. When I click a Delete button it calls DeleteButton_Clicked correctly but then cannot access the objects. I need to delete object and then change the Scan.Text property. Thank you…

Speberat
- 13
- 3
1
vote
1 answer
Xamarin.iOS binding library cannot use the SecKey API from the Security framework
I created a binding library from an objective-c framework. It works but it cannot use SecKey's encryption api in the Security framework. Library used it for the api request. Is Security framework not fully supported in Xamarin.iOS? Or is it not…

Tuğçe Arar
- 776
- 5
- 20
1
vote
1 answer
How to bind simple string object to a Label Text in Xamarin Forms?
I am new in Xamarin development, so please bear if the question seems too simple. I am having a simple single string object in my C# code (Code behind). I want to bind it to a Label in XAML so that whenever the string changes, it reflects in XAML…

Junaid Pathan
- 3,850
- 1
- 25
- 47
1
vote
1 answer
Xamarin Android Bindings
I'm trying to create bindings for the android sdk provided here https://www.nmi.com/sdks-and-apis#CDNA. The binding project builds, and I can add it into my xamarin android project but as soon as I include it I get the following error/s.
error:…

Michael Esteves
- 1,445
- 3
- 21
- 38
1
vote
1 answer
How to use NSDraggingInfo.EnumerateDraggingItems from Xamarin?
I am implementing NSTableView row drag and drop. I am working with the examples here Drag & Drop Reorder Rows on NSTableView.
It's actually going fairly well in that my data source methods are getting called when I drag a row in my table. However I…

fractor
- 1,534
- 2
- 15
- 30
1
vote
1 answer
Xamarin Create Binding project for StripeTerminal
I am attempting to create a binding project for the StripeTerminal CocoaPod (Stripe Terminal iOS). I setup the pod file. Then using the Xamarin docs, I installed Objective Sharpie, and used
sharpie pod bind
which created two files.…

Josh
- 2,248
- 2
- 19
- 38
1
vote
0 answers
Singleton property always null in Xamarin.iOS binding
I followed the documentation and was successful in building a Xamarin.iOS binding for a third party framework. I used Objective Sharpie to generate my binding code and then made some minor changes to remove verify attributes, add class names etc. My…

Tara
- 65
- 1
- 7
1
vote
1 answer
Xamarin MVVM activities binding
I am trying to teach myself Xamarin forms but am having a hard time wrapping my head around how activities and shared code interact with the application specific MVVM.. from what I can gather the model part can be accessed from both the viewmodel…

user7286370
- 17
- 4
1
vote
1 answer
Xamarin - Java Library Listeners and Events?
I'm trying to access user-defined listeners in this Android library with Xamarin bindings (original here) for when the calendar is scrolled to another month or a date is selected on the calendar.
The listeners in the code given in the sample are as…

W. Hoffman
- 27
- 7
1
vote
0 answers
Getting Error while trying to create a nuget for a Xamarin Android Binding Library Project
So I'm trying to build a Nuget Package for an Android Binding Library on Xamarin Mac and I'm getting an error like this
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Bindings.targets(5,5):
Error MSB4044: The…

Sam
- 67
- 8
1
vote
1 answer
How to exclude internal jar from aar Xamarin library binding?
I have an aar library binding which includes corrupted jar - probably obfuscated. aar itself needs this jar but I don't need binding for them. The issue is when I build App which using this binding I am getting an error that: ERROR: unable to open…

Michal Orzechowski
- 11
- 3
1
vote
1 answer
Xamarin CarouselView inside ListView
Is it possible to wrap my CarouselView to the ListView? I tried to do this with Grouping feature, but list is always empty...
In the xaml it should look something like this. Some more detail: I have 3-5 photo per quest, which has another props like…

Riko3412
- 63
- 1
- 5