Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED]Integration of ComputerPlus into my Callouts

Featured Replies

I have been trying to develop a Callouts pack for the last few days, i have managed to create a pursuit and have it all handled by LSPDFR which i am currently really proud of, now i have set my sights to integrating my callouts with ComputerPlus, the computer modification for LSPDFR. 

 

I have read the documentation, set up my files the same as others have done such as Albo1125 in his open source documents but i am unable to get it to work, i have run into the error that Function is inaccessible due to its protection level. I have tried to access Function can it brings me to an empty function class called Function in ComputerPlus but i am unable to edit it from internal to public or anything.

 

computerPlusRunning = Function.IsLSPDFRPluginRunning("ComputerPlus", new Version("1.3.0.0"));

 

ComputerPlusFuncs works without error such as the following code

 

public override void OnCalloutDisplayed()
        {
            if (computerPlusRunning)
            {
                ComputerPlusFuncs.UpdateCalloutStatus(callID, (int)ECallStatus.Dispatched);
            }
            base.OnCalloutDisplayed();
        }

Any and all advice would be really appreciated, i am very very new to c# and this has caused me to grind to a halt.

Edited by vIFraserIv

Officer Dog, Sye Dog.

23 minutes ago, vIFraserIv said:

computerPlusRunning = Function.IsLSPDFRPluginRunning("ComputerPlus", new Version("1.3.0.0"));

This is refering to the class Function in the example callout plugin (click here to see what I mean). You either have to create your own function class with all your useful functions in it or define the method IsLSPDFRPluginRunning in your main class instead.

  • Author
1 hour ago, creator2013 said:

This is refering to the class Function in the example callout plugin (click here to see what I mean). You either have to create your own function class with all your useful functions in it or define the method IsLSPDFRPluginRunning in your main class instead.

 

Thank you so much, i think i have my head around it now, so what you are saying is where they said put it in a easierly accessable method, they mean make a new class and call it Function which i can then access using 

 

computerPlusRunning = Function.IsLSPDFRPluginRunning("ComputerPlus", new Version("1.3.0.0"));

If you could just confirm that, that would be super.

Thanks a bunch for the quick reply.

Officer Dog, Sye Dog.

  • Author
3 minutes ago, creator2013 said:

Yes. Create a static class named Function and put the method in there.

You are a life saver, thank you so much.

Officer Dog, Sye Dog.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.