[MonoTouch] Facebook API - Has anyone already btouched this?

Jeff Stedfast jeff at xamarin.com
Mon Oct 17 18:29:57 EDT 2011


Hi Dermotos,

On Mon, Oct 17, 2011 at 6:23 PM, Dermot O Sullivan <me at dermotos.com> wrote:

> Hi,
>
> Thanks for your help, I think im nearly there. I have facebook working now,
> and bump seems almost there too. I just have a couple more questions:
>
> Firstly, what do I write in the API Definition file for this Bumper.h file:
>
> #import <Foundation/Foundation.h>
>
> @interface Bumper : NSObject {
> }
>
> - (NSString*)userName;
>
>

This would be:

[BaseType (typeof (NSObject))]
interface Bumper {
    [Export ("userName")]
    string UserName { get; }
}



> also, for APIs with asset bundles, do I just place the bundle in the root
> of the project along with the .a file and it gets automatically built, or do
> I need to set some build action to it or reference it explicitly somewhere?


I suspect you'll have to add them to your project as well.

Hope that helps!

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111017/28844fe3/attachment.html 


More information about the MonoTouch mailing list